#include <gmlib/sm2/internal/sm2p256v1.h>
#include <stdexcept>
#include <cstring>

using namespace sm2::internal;

void test_sm2_fn_mul()
{
    sm2_fn_t    a, b, c;
    std::uint8_t c_data[32];

    static std::uint8_t a0[32] = {0xe7,0xd3,0x97,0x6f,0xb0,0xdd,0x78,0x1c,0xa5,0x39,0x0e,0x4a,0x79,0xa3,0x71,0xc5,0x5e,0x11,0xac,0x27,0xa2,0x37,0x6a,0x4a,0xb4,0x77,0x13,0x1c,0xcf,0x69,0xa0,0xcb};
    static std::uint8_t b0[32] = {0x71,0xd7,0x15,0x4d,0xea,0x3f,0xbd,0x82,0x18,0xf7,0x2b,0x6d,0x53,0x31,0x19,0x2c,0xe8,0xa6,0xee,0xe8,0x81,0x7e,0xf9,0x1d,0xb6,0xc8,0xb3,0x80,0x21,0x15,0x27,0x1e};
    static std::uint8_t c0[32] = {0xd0,0x67,0xda,0xcc,0x26,0x80,0x50,0xba,0x11,0xd0,0x07,0xb6,0x04,0x73,0x67,0x03,0xfe,0xd2,0x15,0xbb,0x2e,0x56,0xfe,0x8f,0x26,0x9f,0xb2,0xb5,0x37,0x3a,0xd0,0x79};
    sm2_fn_from_bytes(a, a0);
    sm2_fn_from_bytes(b, b0);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c0, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a1[32] = {0xf1,0xe9,0xa1,0x8b,0xb1,0x57,0xbe,0x21,0xe7,0x33,0x79,0xbd,0xbd,0x7c,0x59,0x47,0xc4,0x69,0xea,0x8f,0xfe,0x88,0xec,0x05,0x1d,0xc0,0x72,0x38,0x54,0xe2,0xc5,0xfa};
    static std::uint8_t b1[32] = {0x45,0xa9,0xc1,0x52,0xb6,0x13,0xcd,0x9e,0xc4,0x12,0x4a,0xfc,0x1c,0xf6,0x12,0x81,0xf9,0xd8,0x2d,0xed,0x0d,0x19,0xfd,0x4b,0x7a,0x77,0xf4,0x67,0xb3,0x4f,0xfb,0xde};
    static std::uint8_t c1[32] = {0xb5,0xcd,0x10,0x81,0x40,0xbc,0x2b,0xc2,0xf3,0xcf,0xbe,0x16,0xdf,0x83,0x0b,0xd9,0x3a,0x9d,0x8c,0xbb,0xe7,0xbd,0x01,0x44,0x17,0x30,0x5e,0x5a,0x9b,0x53,0xae,0x81};
    sm2_fn_from_bytes(a, a1);
    sm2_fn_from_bytes(b, b1);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c1, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a2[32] = {0x32,0x0a,0x0b,0x9d,0x8b,0x6e,0x38,0xb1,0xbe,0x17,0x49,0xf1,0x7f,0x60,0x78,0x37,0x27,0x87,0x1c,0xbb,0xdc,0xbc,0xcf,0x0d,0x1e,0x96,0x57,0x67,0xc5,0xe3,0x14,0xd0};
    static std::uint8_t b2[32] = {0x81,0x92,0x53,0x8d,0x85,0x5e,0x42,0x54,0x5c,0x1e,0x49,0x50,0x5e,0x37,0x7a,0xa4,0x71,0x8c,0x14,0x7a,0x77,0xac,0x19,0xce,0x0f,0xc0,0x53,0xb9,0x3c,0x43,0xc9,0x0a};
    static std::uint8_t c2[32] = {0xa1,0x72,0x6e,0x5c,0xf4,0x4e,0x3e,0xc2,0xf0,0xda,0xad,0xaf,0x40,0x03,0xde,0x23,0xc4,0x4e,0xa3,0x9e,0x4a,0x92,0xea,0x03,0xb5,0x7f,0xda,0x6c,0x70,0x82,0x85,0xba};
    sm2_fn_from_bytes(a, a2);
    sm2_fn_from_bytes(b, b2);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c2, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a3[32] = {0x38,0x3e,0x7e,0x50,0xe4,0x81,0x32,0x7d,0x93,0x1c,0x6f,0x47,0x60,0x74,0x0b,0x01,0x68,0x79,0x94,0x73,0x83,0xf3,0xba,0xb3,0xee,0xcc,0x51,0xc0,0x40,0xf7,0xad,0xd2};
    static std::uint8_t b3[32] = {0x0f,0x8d,0xb3,0x30,0xd1,0x74,0xfd,0x9d,0x75,0x13,0x53,0x65,0x1f,0x76,0x4e,0x2c,0x2b,0x8a,0x3e,0xf9,0x4e,0x18,0x80,0x9f,0xf0,0xb1,0x8f,0x71,0xbf,0x75,0x62,0xf1};
    static std::uint8_t c3[32] = {0xb4,0xf1,0x49,0x15,0x77,0xc5,0x1a,0x00,0x0b,0x34,0x45,0x50,0xe4,0x2c,0x22,0xd0,0x90,0xdb,0x01,0xb5,0x16,0xde,0x79,0xce,0x80,0xcd,0xa6,0x15,0xa4,0x1f,0x64,0x39};
    sm2_fn_from_bytes(a, a3);
    sm2_fn_from_bytes(b, b3);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c3, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a4[32] = {0xea,0xcc,0xd2,0x57,0x54,0x7f,0xdd,0x8a,0x74,0x51,0x49,0xbd,0xc8,0xaa,0x13,0xe6,0xc0,0x51,0x76,0x9f,0xeb,0x66,0x9f,0x54,0x36,0xc9,0x28,0xbd,0x42,0xb4,0xb1,0x48};
    static std::uint8_t b4[32] = {0x17,0x9f,0x2c,0x7a,0x06,0x29,0x8d,0x3f,0xc6,0xc0,0x57,0x07,0xec,0xb3,0x38,0xd1,0x0c,0x1d,0x9b,0xb8,0x1a,0xaa,0xc8,0x48,0x57,0x0a,0xc4,0x2c,0xd9,0x0d,0x0d,0xb9};
    static std::uint8_t c4[32] = {0x71,0x5e,0x4e,0xd6,0x8a,0x72,0x31,0xa6,0xb5,0xab,0x93,0x2a,0xfc,0x86,0x79,0x37,0xd4,0xbf,0x4e,0x1d,0x37,0x28,0x03,0x0e,0x1f,0xcf,0xde,0x2d,0x5d,0x1b,0xee,0x12};
    sm2_fn_from_bytes(a, a4);
    sm2_fn_from_bytes(b, b4);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c4, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a5[32] = {0xa3,0x60,0xd0,0x3c,0xa4,0xfe,0xba,0x8e,0x64,0x53,0xe4,0x84,0xc5,0x55,0xcd,0x82,0x33,0x8c,0xef,0x58,0xbe,0x59,0x91,0x6c,0xdc,0xd4,0x43,0xbb,0x3d,0x77,0xfc,0x69};
    static std::uint8_t b5[32] = {0xbf,0x5e,0xfc,0xb6,0x7b,0x1f,0xe6,0x3c,0x39,0xab,0xe5,0x42,0x64,0xc0,0xb3,0xac,0x00,0x1d,0x44,0x40,0x73,0x14,0xc4,0x3b,0x9b,0x17,0x9d,0x7c,0x1f,0x82,0x63,0xbd};
    static std::uint8_t c5[32] = {0xab,0x9c,0xd8,0xc8,0x11,0x21,0x67,0x50,0xa0,0x25,0xea,0x2e,0x00,0x45,0x23,0x84,0x4d,0xc7,0xba,0x24,0x75,0x1b,0x34,0x33,0xc0,0x08,0x55,0xdd,0x53,0xde,0x36,0x29};
    sm2_fn_from_bytes(a, a5);
    sm2_fn_from_bytes(b, b5);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c5, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a6[32] = {0x9a,0x07,0x04,0x53,0x15,0x06,0xda,0x1e,0xe8,0x0f,0x8b,0xdc,0xb2,0xcf,0xbe,0x96,0x3f,0xf2,0x04,0x4b,0xf7,0x81,0x4c,0x3c,0x8a,0xdb,0xfc,0x0f,0x6d,0xd6,0x2d,0x04};
    static std::uint8_t b6[32] = {0x8d,0xd0,0x4e,0x4f,0xfb,0x54,0x9c,0x9d,0x9a,0x46,0x4e,0xfb,0x90,0x26,0xbd,0x83,0x58,0x37,0x75,0x23,0x70,0xda,0x0c,0x13,0x5b,0xbf,0xa7,0x06,0x92,0x4c,0x22,0x5e};
    static std::uint8_t c6[32] = {0x95,0x28,0xb4,0x3d,0xf0,0x9d,0x63,0x3e,0xaa,0xee,0x0a,0x8a,0x02,0x05,0x18,0x9c,0x5c,0xf9,0x28,0x80,0x62,0x1e,0x03,0xd8,0x4c,0x2e,0xf4,0x43,0x99,0x2a,0x63,0x1c};
    sm2_fn_from_bytes(a, a6);
    sm2_fn_from_bytes(b, b6);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c6, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a7[32] = {0xaa,0x9d,0x4d,0x26,0xf2,0xeb,0x65,0x04,0xb7,0x84,0x64,0x91,0x8b,0x7c,0xa6,0x62,0x38,0x8c,0xb0,0xfb,0x1f,0xd8,0x0d,0x27,0xbc,0x9a,0xd2,0xa4,0x19,0xdb,0x0b,0x60};
    static std::uint8_t b7[32] = {0xbc,0xb6,0x34,0xee,0x89,0xe2,0xff,0x15,0xb3,0x58,0x99,0xda,0x91,0xa6,0x3f,0xd8,0x63,0x02,0xf0,0x43,0x36,0xbf,0x11,0xd6,0xaf,0x17,0x65,0x04,0xb1,0x33,0x62,0xbb};
    static std::uint8_t c7[32] = {0x73,0x1a,0xc8,0x7d,0x73,0x4d,0x6e,0x0c,0xd8,0x98,0x76,0x28,0x0a,0xb2,0xde,0xa5,0xb0,0xc7,0xc0,0xa8,0xc2,0x9a,0x11,0x83,0xb0,0xac,0x7a,0x17,0xa6,0xf6,0x5e,0x54};
    sm2_fn_from_bytes(a, a7);
    sm2_fn_from_bytes(b, b7);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c7, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a8[32] = {0x9b,0x2d,0xc8,0xa7,0xbc,0x64,0xa1,0x14,0xc0,0x0f,0x89,0x2a,0x86,0xd4,0x76,0xa3,0x11,0x84,0x4a,0x8a,0xeb,0xa5,0xaa,0x99,0xfa,0x20,0xa0,0x0d,0xef,0xb2,0x0b,0xa7};
    static std::uint8_t b8[32] = {0x4d,0xbe,0x20,0x58,0x0c,0x9a,0x41,0x49,0xbe,0xee,0x38,0xb0,0x95,0x64,0xbe,0x8f,0x7e,0x60,0x13,0x8f,0x99,0xb1,0x9c,0xf3,0xb8,0x25,0x7d,0x9c,0xfb,0x7a,0x9d,0xb4};
    static std::uint8_t c8[32] = {0xd6,0x91,0x7f,0x76,0x6c,0xaf,0x0e,0xa0,0x2f,0x2e,0x7c,0x59,0x1e,0x7b,0x93,0xbe,0x40,0x3f,0x5c,0xbf,0x14,0x69,0x44,0x21,0x9a,0x6d,0xbe,0x6d,0x00,0xab,0x03,0x2d};
    sm2_fn_from_bytes(a, a8);
    sm2_fn_from_bytes(b, b8);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c8, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a9[32] = {0x34,0x5a,0x2b,0x0d,0xab,0x9a,0x1b,0xed,0xd7,0x95,0xdd,0x48,0x25,0x0c,0xdc,0xd6,0x58,0x88,0xd9,0x8c,0xa8,0xb1,0x63,0x2a,0x8a,0x6a,0xc3,0xb8,0xbb,0x65,0x78,0x08};
    static std::uint8_t b9[32] = {0x3a,0xed,0x07,0x83,0x6b,0x89,0x11,0x7d,0x36,0xd4,0x04,0xf7,0xa1,0x6b,0x2e,0xbd,0x0b,0x22,0x37,0x71,0x67,0x59,0xa6,0x84,0xfd,0x61,0xa9,0x60,0x98,0x72,0x5a,0x02};
    static std::uint8_t c9[32] = {0xf5,0x09,0x99,0xa6,0x01,0x83,0xe2,0x24,0x91,0x15,0xf8,0xf8,0xeb,0x38,0x58,0x6e,0x52,0x23,0xad,0x91,0xdc,0x65,0x5b,0x1d,0x33,0xc1,0xca,0x4a,0x65,0x18,0x28,0x01};
    sm2_fn_from_bytes(a, a9);
    sm2_fn_from_bytes(b, b9);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c9, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a10[32] = {0x97,0x7b,0xf2,0xd3,0x3a,0x42,0x28,0x78,0x88,0xc7,0xac,0xe1,0x84,0xa9,0x8b,0x8e,0xe7,0x9d,0xdd,0xf2,0x02,0xf2,0xfd,0x90,0x23,0x03,0xb2,0xae,0x4c,0x10,0x0b,0xfe};
    static std::uint8_t b10[32] = {0x8a,0x9c,0x62,0x0a,0xa2,0x69,0x08,0xe8,0xd7,0x16,0x96,0x91,0xe0,0xd6,0x90,0xb0,0x47,0x43,0x89,0x10,0x93,0x4f,0x45,0x73,0xe2,0x43,0xac,0x63,0x12,0xa8,0x01,0x85};
    static std::uint8_t c10[32] = {0xe6,0xe3,0x45,0x80,0x80,0xf3,0xe9,0xf8,0x63,0x2a,0x77,0x2d,0xde,0x5d,0xa4,0xd7,0x52,0x7e,0xee,0x6f,0xdc,0x8e,0x72,0x63,0x3d,0xd5,0x86,0x9d,0x79,0xef,0xf8,0x59};
    sm2_fn_from_bytes(a, a10);
    sm2_fn_from_bytes(b, b10);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c10, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a11[32] = {0x1e,0x0f,0xa2,0xcd,0x1b,0x15,0x20,0xdb,0x13,0x7d,0x19,0xad,0xbe,0xcc,0xe5,0xa4,0xed,0x17,0xa9,0x95,0x83,0x7e,0x1f,0xb7,0xc0,0x54,0x7f,0x8d,0x45,0xea,0xe3,0xbf};
    static std::uint8_t b11[32] = {0x30,0xdd,0xe8,0x7b,0x32,0x17,0xca,0x47,0x8e,0xb0,0xba,0x9e,0x39,0x7c,0xca,0x9f,0x0a,0x81,0xd4,0xd7,0x02,0x05,0x0b,0xae,0x0d,0x0f,0xcd,0xf0,0xc0,0x82,0x27,0x57};
    static std::uint8_t c11[32] = {0x0d,0x6e,0xa6,0xc0,0xd8,0x71,0x39,0xf1,0x81,0xbf,0xe6,0x58,0x12,0x6c,0x3b,0x84,0x4a,0x9e,0x7e,0x2d,0xe2,0xde,0xb1,0x5b,0x24,0x2f,0x9d,0x37,0x0a,0xe4,0x78,0x74};
    sm2_fn_from_bytes(a, a11);
    sm2_fn_from_bytes(b, b11);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c11, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a12[32] = {0x80,0xef,0xfc,0x6d,0x81,0xfa,0x3a,0x94,0x40,0xdc,0xf3,0x2b,0xe2,0xbb,0x3f,0x9c,0xcd,0x5b,0x1c,0xef,0x37,0xb8,0x46,0x83,0xe7,0x0c,0xc7,0x6a,0xb5,0xee,0xa1,0x61};
    static std::uint8_t b12[32] = {0x47,0xf3,0xad,0x6d,0x06,0xb1,0x33,0x99,0x07,0x09,0x0f,0xfb,0x53,0x1c,0x41,0xf2,0xee,0x43,0x76,0xd2,0x06,0x14,0xef,0xf2,0xa1,0x2d,0xbb,0x85,0xda,0x55,0x72,0x0d};
    static std::uint8_t c12[32] = {0xea,0x10,0xe1,0xb5,0xfd,0x04,0xe3,0xe0,0xa5,0xd3,0x02,0x1d,0x6b,0x24,0x08,0x31,0x50,0xe4,0x4f,0xda,0x80,0xda,0x46,0xb7,0x8c,0x89,0x6e,0xa3,0x11,0x68,0x89,0x40};
    sm2_fn_from_bytes(a, a12);
    sm2_fn_from_bytes(b, b12);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c12, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a13[32] = {0xf8,0x0d,0x4d,0x58,0x61,0x97,0x52,0x76,0x39,0xd2,0x94,0x2a,0x1e,0x98,0xf1,0x6d,0xc4,0x98,0xbf,0xaa,0xce,0x1a,0xfc,0x91,0xde,0xff,0x1a,0xb3,0x12,0x9d,0xd5,0xa4};
    static std::uint8_t b13[32] = {0x13,0x7a,0x6c,0x51,0x06,0xa8,0xbd,0x39,0xdf,0x24,0x35,0xb9,0x4d,0x09,0x1e,0xad,0x03,0x5a,0xca,0xab,0x5a,0xc4,0x86,0x56,0x07,0x1d,0x6a,0x97,0x3a,0x88,0x26,0x9d};
    static std::uint8_t c13[32] = {0x5a,0x76,0xb2,0x34,0x93,0x26,0x2d,0x6e,0xd3,0x4a,0x13,0x26,0x53,0x82,0xe7,0x25,0xf3,0x63,0x02,0x28,0xfc,0xc3,0xd8,0x18,0xc4,0xec,0x9c,0x58,0xc3,0x50,0xeb,0x8b};
    sm2_fn_from_bytes(a, a13);
    sm2_fn_from_bytes(b, b13);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c13, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a14[32] = {0xcc,0x1e,0xb2,0xf8,0xdc,0x03,0x52,0x76,0xe5,0x41,0xa1,0xe6,0x98,0x47,0x8a,0x3b,0x39,0x93,0x65,0x82,0x1b,0x6e,0xad,0xa0,0xe3,0xb3,0xb2,0xa1,0xb1,0x11,0xac,0x27};
    static std::uint8_t b14[32] = {0xad,0x85,0x4a,0x06,0x7a,0xe6,0x57,0x63,0xff,0xa3,0x09,0x2c,0x96,0x49,0xe9,0x85,0x67,0xe0,0x4f,0x2b,0x08,0xea,0x9e,0xd8,0xab,0x37,0xaa,0xd9,0x2f,0x81,0x7f,0xfd};
    static std::uint8_t c14[32] = {0x20,0xda,0x3e,0xdf,0x05,0xb2,0x12,0xe2,0x7b,0xc6,0x04,0x9e,0x68,0x2f,0x0b,0x00,0xc1,0x43,0x57,0xc4,0x88,0x58,0x6f,0x55,0xa8,0x25,0xd6,0xc8,0xce,0x24,0x5e,0xd2};
    sm2_fn_from_bytes(a, a14);
    sm2_fn_from_bytes(b, b14);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c14, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a15[32] = {0x1c,0xb6,0xbb,0x6a,0xfd,0x3e,0x80,0x3c,0x98,0xeb,0x13,0x1e,0x55,0xc0,0x20,0x94,0xca,0x25,0xdf,0x8f,0xee,0x65,0xd5,0x83,0x2f,0xf8,0xdf,0xa2,0x5d,0x32,0xcd,0x9d};
    static std::uint8_t b15[32] = {0x06,0xe4,0xf8,0x2b,0x72,0x81,0x6c,0x3a,0xe1,0x06,0x60,0xc1,0xd0,0x75,0xc8,0x17,0x6f,0x20,0xcd,0x00,0x66,0x7a,0x91,0x6e,0x98,0x46,0x9d,0x8f,0x53,0x62,0xbd,0x2d};
    static std::uint8_t c15[32] = {0x95,0xa9,0x29,0xe7,0x01,0xb3,0xea,0x90,0xa5,0x36,0xd3,0xe8,0x93,0x29,0xb7,0xa7,0xbb,0x17,0xe4,0x2d,0xad,0x8b,0x87,0x9b,0xa3,0xcd,0xd4,0xcb,0x64,0x6a,0x27,0xbb};
    sm2_fn_from_bytes(a, a15);
    sm2_fn_from_bytes(b, b15);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c15, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a16[32] = {0xe6,0x24,0x02,0xb1,0x2b,0xb0,0xcf,0x7b,0x8b,0xc6,0x13,0xf6,0x7d,0xdb,0x41,0xeb,0x4b,0xbb,0x55,0x93,0x65,0x3e,0xdd,0x5d,0x39,0x9f,0x93,0x94,0x5b,0x03,0x0a,0xf6};
    static std::uint8_t b16[32] = {0xc4,0x35,0x93,0x75,0x08,0x4f,0x48,0x49,0x76,0xd0,0x77,0x69,0xfb,0x8f,0x3b,0xdf,0x55,0xa7,0xda,0x19,0xc9,0xd9,0xdd,0xdf,0x06,0xf5,0xf5,0x8c,0xa7,0xb7,0xc2,0x43};
    static std::uint8_t c16[32] = {0x10,0xc3,0x10,0xa0,0xad,0xf1,0x8a,0x6b,0x42,0xd3,0xeb,0x84,0x3a,0x9b,0x44,0xce,0xbd,0x81,0x47,0x90,0x72,0xcb,0xc9,0x63,0x32,0x97,0x7f,0x0c,0x9c,0xc6,0x7f,0x47};
    sm2_fn_from_bytes(a, a16);
    sm2_fn_from_bytes(b, b16);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c16, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a17[32] = {0xf4,0xb9,0x7d,0x67,0x3d,0x2e,0xfc,0x68,0x60,0xe2,0xae,0x8e,0x90,0x1a,0x04,0x66,0x27,0xc5,0x8e,0x81,0x41,0xe0,0x51,0x7c,0x5b,0x2b,0x9a,0x2d,0x3f,0x55,0x10,0x1d};
    static std::uint8_t b17[32] = {0x12,0x00,0xfe,0xa8,0x9f,0xe9,0x81,0xb2,0xd8,0xf8,0xcc,0x2b,0x8d,0x08,0x2c,0x02,0xa4,0xd9,0x3a,0x49,0xae,0x81,0x52,0xaa,0x4c,0xc1,0x56,0x99,0xba,0xdb,0xe0,0x69};
    static std::uint8_t c17[32] = {0x0c,0x1f,0x53,0x93,0x47,0xc3,0x52,0x27,0x2e,0x58,0x07,0xfd,0x24,0x66,0x06,0x7e,0xaf,0x9d,0xa1,0xd1,0xf5,0x33,0x79,0xf6,0x12,0xf9,0x1f,0x61,0xf4,0xf0,0xc4,0x44};
    sm2_fn_from_bytes(a, a17);
    sm2_fn_from_bytes(b, b17);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c17, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a18[32] = {0x93,0xa4,0x1f,0xa3,0x2c,0x29,0x88,0xb3,0xd8,0x07,0x77,0x41,0x23,0x7f,0x07,0x9f,0x4a,0xbe,0x88,0x0f,0x4d,0x9e,0xd2,0x7a,0x29,0xe9,0xa2,0xf9,0x05,0x22,0xa1,0x9e};
    static std::uint8_t b18[32] = {0x9d,0x22,0x41,0xcf,0x57,0xd7,0x7c,0xae,0xce,0x3f,0x39,0xda,0xb2,0x58,0x91,0xca,0x9c,0xc3,0xe6,0x64,0xe8,0x26,0xdf,0x2b,0x06,0xc5,0x2a,0xa8,0x80,0x06,0x8b,0x3c};
    static std::uint8_t c18[32] = {0x32,0xdd,0xd6,0x00,0x04,0x6c,0x10,0xfa,0x10,0x3e,0xfd,0xc8,0xee,0x3e,0xa2,0x04,0xef,0xb8,0xa4,0x60,0x6e,0x88,0xfb,0x5a,0x03,0xdd,0xb7,0x73,0x8e,0xc2,0xe2,0x04};
    sm2_fn_from_bytes(a, a18);
    sm2_fn_from_bytes(b, b18);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c18, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a19[32] = {0xd5,0xb2,0x99,0x26,0x7b,0x57,0xac,0x44,0xb8,0x5d,0x3a,0x47,0xd4,0x77,0x04,0x22,0xf9,0x29,0x98,0xb2,0x77,0xc1,0xcf,0x1b,0x47,0xf6,0x12,0xfa,0xea,0xe7,0xb9,0x8a};
    static std::uint8_t b19[32] = {0x8a,0x90,0x91,0x13,0x4e,0x08,0xe0,0x44,0x52,0xc6,0x6b,0x8f,0x00,0x32,0xe8,0x88,0x52,0xa1,0x41,0xa2,0x22,0x9a,0xb1,0x0c,0xa0,0xbb,0x3e,0xd0,0xfe,0xb5,0xee,0x08};
    static std::uint8_t c19[32] = {0x13,0xa9,0x00,0xf1,0x17,0xe2,0x94,0x0f,0x3b,0x6e,0x4c,0x7f,0x07,0xf5,0xd0,0x3e,0x20,0x3a,0x4e,0xb9,0x03,0xe2,0xc8,0x21,0x61,0x68,0x08,0xa8,0xfa,0x05,0x70,0xe2};
    sm2_fn_from_bytes(a, a19);
    sm2_fn_from_bytes(b, b19);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c19, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a20[32] = {0x96,0x08,0x9a,0x8a,0xb1,0xd1,0xcf,0xfb,0xeb,0xb6,0x5a,0x87,0x19,0xf9,0xc0,0x5c,0xe8,0x5c,0x12,0xa7,0xce,0x22,0x61,0xc0,0xc0,0x1b,0xff,0xd5,0x28,0x1e,0xdd,0x1f};
    static std::uint8_t b20[32] = {0xbb,0x57,0x27,0xb7,0xb4,0xdd,0x79,0xe4,0xa1,0x31,0x1f,0x84,0x30,0xcf,0x99,0x8b,0x91,0x37,0x28,0x14,0x73,0xdb,0x74,0x46,0xd6,0x78,0xa9,0x3a,0xb4,0x27,0x5f,0xa7};
    static std::uint8_t c20[32] = {0x28,0x61,0x1a,0x55,0x0c,0x3d,0xcc,0x20,0x97,0xff,0xec,0xff,0x9d,0x69,0xad,0x4a,0x9b,0x68,0xb5,0x2a,0x53,0xe8,0xec,0xa8,0x0e,0x24,0xfe,0x01,0x8b,0xba,0x80,0x13};
    sm2_fn_from_bytes(a, a20);
    sm2_fn_from_bytes(b, b20);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c20, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a21[32] = {0x7e,0xce,0xc7,0x43,0xcc,0x8b,0x03,0xbc,0x70,0x75,0x85,0x00,0xd0,0xf1,0x3d,0xf3,0xaa,0xc6,0x37,0x53,0x9f,0xaf,0xe7,0x91,0x03,0x00,0x14,0xe7,0xf9,0x58,0x64,0x14};
    static std::uint8_t b21[32] = {0x3b,0x9c,0xb1,0xa5,0x45,0x97,0xaa,0x2c,0xeb,0xd6,0xa1,0xaf,0x07,0x01,0xed,0x65,0xac,0x4c,0x2c,0xb4,0x31,0xb7,0xc0,0x83,0xa6,0xc4,0x0e,0x36,0x87,0x44,0x05,0xad};
    static std::uint8_t c21[32] = {0x54,0x77,0x78,0xf3,0x6e,0x7e,0x8a,0x5a,0xf4,0xb6,0x7b,0x96,0xf1,0x31,0xdb,0x9f,0x4a,0x4e,0x5c,0x90,0xb4,0x34,0x55,0x8d,0x07,0x80,0x89,0x7e,0x08,0xbb,0xc8,0xa5};
    sm2_fn_from_bytes(a, a21);
    sm2_fn_from_bytes(b, b21);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c21, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a22[32] = {0x54,0x36,0x02,0x0c,0xa2,0x80,0x3f,0x01,0x9c,0xb2,0xcc,0xf9,0xc7,0x97,0x8f,0xa1,0xe8,0x4d,0x9a,0x4a,0xd8,0xfb,0xfe,0x18,0xd9,0x98,0xbe,0xbb,0xfd,0x32,0xc1,0xed};
    static std::uint8_t b22[32] = {0x30,0x14,0x3a,0xb1,0x80,0x8e,0xe3,0x79,0xc9,0x08,0xc0,0x54,0x09,0xa7,0x82,0x51,0x8f,0xe2,0x79,0x03,0x0e,0x0e,0x8b,0xb1,0x9f,0xa7,0xa1,0xa0,0x05,0xd8,0x75,0x07};
    static std::uint8_t c22[32] = {0xeb,0x03,0xbb,0x85,0x14,0xe8,0x28,0x63,0xef,0xc9,0x23,0xc9,0x17,0x2f,0xdb,0x6c,0x18,0xc6,0x73,0x05,0xea,0x86,0x75,0x66,0x3c,0x92,0x7a,0x2e,0x0b,0x3e,0x58,0xf9};
    sm2_fn_from_bytes(a, a22);
    sm2_fn_from_bytes(b, b22);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c22, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a23[32] = {0x7d,0xa9,0x04,0x2d,0xad,0x36,0x91,0x7a,0xac,0x95,0xc7,0x39,0xc7,0x2a,0x61,0xe6,0x6c,0xac,0x89,0x8d,0x86,0x77,0xfd,0x5e,0xc7,0xdd,0x03,0x30,0x93,0x61,0x90,0xde};
    static std::uint8_t b23[32] = {0x4b,0x8f,0x70,0xdb,0x93,0xc9,0xd0,0x1b,0x27,0x30,0xee,0x3c,0x97,0x34,0x6f,0xda,0xd5,0xb9,0x31,0x11,0x06,0xe5,0x4b,0xfc,0x85,0xe9,0xf1,0x17,0x8e,0xc7,0x90,0x78};
    static std::uint8_t c23[32] = {0xb3,0xce,0xfa,0x18,0x26,0x8f,0x8e,0x45,0x76,0x7b,0x7a,0x1d,0x9f,0x00,0xf2,0x37,0xe9,0x89,0x2e,0x83,0x42,0x72,0x1e,0xc5,0xc1,0x4d,0x2e,0xe7,0xcc,0xb5,0xb9,0xb9};
    sm2_fn_from_bytes(a, a23);
    sm2_fn_from_bytes(b, b23);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c23, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a24[32] = {0x1b,0x56,0x3a,0x18,0x48,0xa9,0x71,0x83,0x12,0x5d,0x03,0xe2,0xae,0xe1,0x16,0xe0,0x28,0x1e,0xbe,0x67,0xcf,0xac,0x1b,0xb3,0x66,0x6a,0x77,0x9d,0xaf,0x9d,0x9f,0x74};
    static std::uint8_t b24[32] = {0x02,0x19,0x63,0x6f,0x12,0x0c,0xde,0xc1,0x6f,0x02,0x41,0x05,0x37,0x11,0xee,0x5d,0x85,0x73,0xaf,0xad,0x70,0xc1,0x55,0x11,0x71,0xea,0xb9,0x3f,0x4a,0x04,0xd8,0x79};
    static std::uint8_t c24[32] = {0xfb,0xfd,0x41,0x02,0x5d,0xd2,0x4b,0x10,0x90,0x6c,0xea,0xff,0xf2,0xf2,0x24,0xde,0xc3,0xca,0xe5,0x12,0xfd,0x54,0x0c,0xef,0xdf,0xec,0xb8,0xaa,0xda,0x1d,0x05,0x08};
    sm2_fn_from_bytes(a, a24);
    sm2_fn_from_bytes(b, b24);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c24, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a25[32] = {0xf0,0x12,0x75,0xf7,0xac,0x5e,0x96,0x40,0x9e,0x4d,0x28,0xa9,0xbd,0x54,0xbb,0x82,0xa4,0x4d,0xd2,0x18,0xf1,0xde,0x70,0xff,0x53,0xaa,0x27,0x73,0x7f,0xb1,0xee,0x0a};
    static std::uint8_t b25[32] = {0xf5,0x7f,0x73,0x55,0xc0,0xbf,0x8e,0xea,0xc9,0xfe,0x36,0x6a,0x53,0xee,0x34,0x42,0x18,0x02,0x1f,0x57,0xf7,0x47,0xba,0x9f,0x45,0xfb,0xf3,0xf1,0xa0,0x82,0xe9,0x7e};
    static std::uint8_t c25[32] = {0xa4,0xe5,0x8f,0x38,0x70,0xac,0x00,0xdc,0x71,0x4a,0x65,0x1e,0x41,0x2c,0x31,0xc1,0x09,0x18,0xa4,0x62,0x93,0xa6,0x4b,0xf5,0xbc,0xf2,0x7f,0x99,0xfb,0x17,0xdb,0x76};
    sm2_fn_from_bytes(a, a25);
    sm2_fn_from_bytes(b, b25);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c25, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a26[32] = {0xb4,0x5c,0x02,0x26,0xd4,0x94,0xc2,0x2e,0xde,0x12,0x19,0x54,0xc5,0xdd,0x7c,0x61,0x9e,0x4e,0x15,0x16,0x94,0xdd,0xba,0x02,0x4e,0xd1,0x44,0xd2,0x9e,0xb6,0xcb,0x07};
    static std::uint8_t b26[32] = {0xb9,0xda,0x6a,0x90,0xe0,0x07,0x9d,0x34,0x72,0x17,0x1f,0x84,0x00,0xd0,0xdf,0x00,0x1d,0x2c,0xd9,0x51,0x5c,0x35,0xe7,0xdb,0x1d,0x78,0xd4,0xec,0xa7,0x61,0x13,0xdd};
    static std::uint8_t c26[32] = {0x4c,0xd1,0x9f,0x7a,0x05,0x46,0x45,0xf7,0x6d,0xe6,0x00,0xd0,0x0a,0x18,0xf7,0x32,0xb4,0xb9,0x2b,0xff,0x47,0x40,0x9f,0xce,0xb2,0x2f,0x9a,0x4b,0xe1,0xd4,0x09,0x86};
    sm2_fn_from_bytes(a, a26);
    sm2_fn_from_bytes(b, b26);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c26, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a27[32] = {0xb1,0xe5,0x0e,0xff,0x9d,0x08,0x0b,0x87,0x10,0x9c,0x42,0xe2,0xd6,0x01,0x46,0xf2,0xc4,0x30,0x1e,0x9d,0x1c,0x89,0x98,0xce,0xe9,0x2e,0xc9,0xb2,0x3b,0x98,0x80,0xc0};
    static std::uint8_t b27[32] = {0x49,0xe5,0xdc,0x94,0xd5,0xd0,0x33,0x52,0xf3,0x94,0x3f,0xf7,0xc3,0x0d,0x3d,0x16,0xfb,0x7e,0x69,0xea,0xf6,0x8b,0xd3,0x22,0x07,0x07,0xda,0xce,0xc2,0x5f,0xe8,0x9f};
    static std::uint8_t c27[32] = {0x07,0xf5,0xd2,0x85,0x63,0x13,0x37,0xe3,0x9f,0x9a,0x66,0x73,0xfc,0x0c,0xfc,0xa5,0x1a,0xb1,0xec,0x7d,0xbf,0x9e,0xb0,0x92,0x11,0xfd,0xb4,0xec,0xfc,0xf2,0xdd,0xe6};
    sm2_fn_from_bytes(a, a27);
    sm2_fn_from_bytes(b, b27);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c27, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a28[32] = {0x48,0x80,0xdc,0xb0,0x91,0xd6,0xe8,0x4d,0xbf,0x8b,0xd7,0x27,0x90,0xee,0x6f,0x16,0x75,0x46,0xba,0x93,0xf6,0x6f,0x7a,0x6d,0x96,0x64,0x04,0xef,0x34,0x8e,0x17,0x4e};
    static std::uint8_t b28[32] = {0x7a,0x66,0x54,0xf1,0xfc,0xcd,0x78,0x03,0x5e,0xcd,0x74,0xd5,0x88,0x45,0x4a,0xea,0x38,0x6b,0x62,0x8d,0xeb,0xa0,0xbb,0x6b,0x46,0x44,0xe4,0x98,0x9f,0x31,0xe8,0xd6};
    static std::uint8_t c28[32] = {0x54,0x32,0xbf,0x29,0xc1,0x9a,0x7f,0x0a,0xc8,0x1e,0xfe,0xb0,0x09,0xb7,0x22,0xb6,0xc5,0x93,0x53,0x43,0xa7,0x77,0x0d,0x8c,0x54,0x19,0x34,0x63,0x77,0xbd,0x2c,0xd3};
    sm2_fn_from_bytes(a, a28);
    sm2_fn_from_bytes(b, b28);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c28, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a29[32] = {0x9f,0xa4,0xdc,0x78,0xe4,0x7b,0x32,0xe3,0xea,0xbd,0x30,0x9d,0xfa,0xc1,0x03,0xd8,0xf4,0x0b,0x3e,0x31,0x8e,0x5e,0x94,0x77,0xd6,0xed,0x5d,0xe7,0x90,0x1e,0xf3,0x53};
    static std::uint8_t b29[32] = {0x87,0x1c,0xef,0xe1,0x8e,0x53,0x40,0xd7,0xa3,0xec,0x28,0xe4,0xff,0x6b,0x21,0xb6,0xd5,0xa7,0x48,0x3f,0xba,0x3c,0x04,0x18,0x63,0x6e,0xd0,0xae,0xf1,0x68,0xab,0xe2};
    static std::uint8_t c29[32] = {0x07,0x3c,0xef,0x49,0x82,0xa1,0x17,0xa5,0xd6,0x9e,0x08,0x8c,0x4b,0xd4,0xb2,0x18,0x11,0x08,0xb6,0xa6,0x7a,0x52,0xea,0x93,0x12,0x56,0x73,0x09,0xe0,0x30,0x91,0x66};
    sm2_fn_from_bytes(a, a29);
    sm2_fn_from_bytes(b, b29);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c29, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a30[32] = {0x88,0xa6,0x2c,0x73,0xee,0x28,0x19,0xc7,0xa9,0x67,0x71,0x9c,0x31,0xaa,0x73,0x66,0xc6,0xc9,0x0e,0xa7,0x19,0xf1,0x5d,0x27,0x1c,0x34,0x1b,0x50,0xfa,0xbe,0xb3,0xe3};
    static std::uint8_t b30[32] = {0xdd,0x85,0x1e,0xbd,0x8a,0x47,0x03,0xf0,0x1a,0x9f,0xb2,0x5f,0x8a,0x94,0xc5,0xfb,0x13,0x8e,0xfe,0x1b,0xcc,0xd5,0x09,0x0d,0xa7,0x74,0x0b,0xc6,0x2e,0x67,0x9a,0xcb};
    static std::uint8_t c30[32] = {0x73,0x9d,0x08,0x62,0xef,0xe6,0xd0,0x34,0x3d,0xed,0x16,0x68,0xde,0x0e,0x55,0x6b,0x33,0xdc,0x95,0x37,0x65,0xed,0xb6,0x9b,0x12,0x1d,0xb4,0x2d,0x9c,0xfe,0xc6,0x6a};
    sm2_fn_from_bytes(a, a30);
    sm2_fn_from_bytes(b, b30);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c30, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a31[32] = {0x00,0xd9,0x72,0x36,0x1f,0xc8,0x83,0xca,0x30,0x6c,0xb8,0x58,0x18,0x99,0x08,0x83,0xd0,0x13,0x59,0xb6,0xef,0xf4,0x8e,0x70,0x88,0x10,0xa3,0xa5,0x70,0xf5,0x6c,0x5e};
    static std::uint8_t b31[32] = {0x81,0x86,0x1a,0xd5,0xfe,0x8f,0x06,0xb3,0x89,0x73,0x5a,0x02,0x39,0x92,0xca,0x48,0xf8,0x12,0x5c,0x62,0x22,0x1a,0xcf,0x17,0xb6,0xd1,0x0c,0xa5,0x60,0x92,0xff,0x18};
    static std::uint8_t c31[32] = {0xc2,0x46,0x04,0xd1,0x03,0x05,0x35,0x78,0xb7,0xfe,0xb1,0x30,0x79,0xe7,0x55,0x2b,0xb4,0x01,0x80,0xd3,0x66,0x92,0x92,0x82,0x49,0x92,0xf1,0xa1,0x6e,0x48,0xd4,0xa6};
    sm2_fn_from_bytes(a, a31);
    sm2_fn_from_bytes(b, b31);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c31, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a32[32] = {0x55,0x35,0x01,0xa8,0xf0,0xe2,0xeb,0x0c,0xea,0x80,0x43,0x86,0x77,0x34,0x46,0x05,0xae,0x29,0xfd,0x3e,0xca,0x2c,0x36,0x79,0xe6,0x24,0x22,0xbb,0x10,0x63,0x21,0xe2};
    static std::uint8_t b32[32] = {0xaa,0x22,0x58,0xc8,0xd1,0x77,0x17,0x04,0x4c,0x0a,0xe6,0x2c,0x91,0x98,0x1b,0x7c,0x77,0x9a,0x7d,0x5b,0xf2,0x82,0xe0,0xb5,0xee,0x50,0x72,0xce,0x9e,0x65,0x77,0x12};
    static std::uint8_t c32[32] = {0xbf,0x07,0xa1,0x3b,0x25,0xd7,0x6b,0xa9,0xe8,0xfa,0x6d,0x69,0xa2,0xda,0xdd,0x47,0x43,0x94,0xa6,0x76,0x7d,0x13,0x92,0x4d,0xb9,0x6c,0x92,0xd2,0x54,0xdc,0x57,0xd7};
    sm2_fn_from_bytes(a, a32);
    sm2_fn_from_bytes(b, b32);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c32, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a33[32] = {0xbe,0x05,0x53,0x9d,0xdd,0x39,0x50,0xf1,0xbc,0xea,0xc6,0x64,0x4b,0x99,0xc8,0xd4,0x94,0xc2,0x1b,0x58,0x80,0xca,0xb3,0x82,0xbd,0xf5,0x4e,0x76,0x3c,0xe6,0x50,0xe2};
    static std::uint8_t b33[32] = {0x30,0x80,0x25,0x08,0x9b,0xa7,0x60,0x6c,0xc2,0xc5,0x1e,0xe4,0xea,0xd4,0x3a,0xba,0xdb,0x54,0xb6,0xf9,0x5f,0xc7,0x49,0x86,0x32,0xdb,0x14,0x23,0x14,0x09,0x62,0x4d};
    static std::uint8_t c33[32] = {0x9b,0xcb,0x13,0xa3,0x55,0x7d,0x14,0x45,0x64,0x85,0x4f,0x87,0xf3,0xd8,0x8f,0x5a,0xdd,0xb6,0xde,0xd4,0xf9,0x9b,0xbe,0xb1,0xb9,0x12,0xf2,0xbe,0x12,0x4b,0x5e,0x88};
    sm2_fn_from_bytes(a, a33);
    sm2_fn_from_bytes(b, b33);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c33, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a34[32] = {0xd4,0x0d,0x28,0xf0,0x32,0xd1,0x6f,0x9c,0x51,0x59,0x30,0x19,0xa1,0x3a,0xc9,0x24,0xf8,0xa2,0x5b,0x11,0x8e,0x82,0x46,0xbe,0x77,0x70,0xed,0x82,0x6f,0x9f,0x71,0xfb};
    static std::uint8_t b34[32] = {0x09,0x58,0xc9,0x90,0x81,0x18,0xd1,0xdd,0x2b,0x09,0xd1,0x2c,0x4b,0x0c,0xa4,0x63,0x86,0xe9,0xed,0x9e,0x7a,0x2a,0x62,0x03,0x3f,0x24,0x33,0x67,0x2b,0x7e,0x19,0xcd};
    static std::uint8_t c34[32] = {0x54,0x21,0xd8,0x3b,0x50,0x50,0x7f,0x4b,0x4c,0x99,0xa7,0x80,0x85,0x41,0xaa,0x91,0x44,0xc9,0x9e,0x2e,0x51,0xcb,0xd0,0x8f,0xe1,0x16,0xf8,0x11,0xab,0x83,0xc9,0xde};
    sm2_fn_from_bytes(a, a34);
    sm2_fn_from_bytes(b, b34);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c34, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a35[32] = {0x41,0x26,0x14,0x78,0xcd,0xc1,0xb9,0x36,0xe9,0x1b,0xaf,0xb1,0x4e,0xe4,0x86,0xd5,0xac,0x64,0x92,0x14,0x35,0x93,0x14,0x9b,0xfd,0x70,0x2a,0x42,0xde,0x40,0xb5,0x4b};
    static std::uint8_t b35[32] = {0x54,0x0b,0x5d,0xad,0x3b,0xed,0x4e,0x78,0xef,0x05,0xfc,0xe0,0xfd,0x84,0x42,0x86,0x90,0x8f,0x21,0xd0,0x5d,0x3a,0x35,0xfd,0xf9,0x67,0x07,0x04,0x20,0x72,0x33,0x5e};
    static std::uint8_t c35[32] = {0xa5,0xca,0x99,0x7d,0x05,0x05,0x09,0xa5,0x90,0xa8,0x95,0xb8,0xd7,0x49,0xa9,0xe3,0xda,0xdd,0xa8,0x76,0xc5,0xa9,0x9e,0x5a,0x0f,0x2c,0xda,0xe4,0x7f,0xa4,0x78,0x30};
    sm2_fn_from_bytes(a, a35);
    sm2_fn_from_bytes(b, b35);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c35, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a36[32] = {0x4f,0xae,0x55,0xc0,0x39,0xa4,0x7b,0x98,0x22,0x8c,0x5b,0xc4,0xa3,0x1b,0x4d,0x4d,0xfb,0x16,0x0c,0x57,0x44,0x94,0xaa,0xa5,0x70,0x4a,0x28,0x17,0x8e,0xe8,0xdf,0xa9};
    static std::uint8_t b36[32] = {0x57,0x0e,0x19,0xd7,0xe9,0xde,0x5b,0xd8,0x73,0xf4,0x3a,0x83,0xce,0x9b,0xf4,0x8c,0x22,0xa8,0xbf,0xf7,0x83,0xd7,0x6d,0x21,0x0b,0xec,0xfd,0xe5,0x1b,0xcd,0xc7,0xa3};
    static std::uint8_t c36[32] = {0xcf,0xf2,0x10,0xb9,0x0d,0x32,0x9e,0x02,0x64,0xad,0xdf,0x0b,0x59,0xee,0x29,0x3f,0x3f,0x30,0x85,0x46,0xb8,0x2e,0x76,0x89,0x85,0xf1,0xe4,0x4f,0x6e,0x16,0x12,0xe1};
    sm2_fn_from_bytes(a, a36);
    sm2_fn_from_bytes(b, b36);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c36, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a37[32] = {0xd9,0xed,0xdc,0x48,0xd6,0xbf,0xd5,0xfb,0x77,0x30,0xe1,0xee,0x60,0xe2,0x10,0xb8,0xdc,0xce,0xc4,0xce,0x39,0x07,0x7f,0xc6,0x7c,0x25,0x6e,0x73,0x20,0x67,0x81,0xb8};
    static std::uint8_t b37[32] = {0x76,0xac,0xa8,0xf6,0x12,0x28,0xed,0x32,0x17,0x88,0xf2,0x59,0x41,0x11,0x54,0xbe,0xe1,0xc6,0x1c,0x4e,0x7c,0xfa,0xec,0xcc,0x2e,0xa9,0x7a,0x40,0xe4,0x75,0x2b,0x0a};
    static std::uint8_t c37[32] = {0xd0,0xf1,0x0c,0xce,0x5b,0xb6,0xb3,0x9e,0x0d,0xaf,0x0b,0x33,0x7c,0x8e,0xb9,0xdd,0xbc,0x58,0x09,0xef,0x25,0xd3,0x98,0x7a,0x35,0xb9,0x2d,0xf2,0x01,0xcd,0x6b,0x2d};
    sm2_fn_from_bytes(a, a37);
    sm2_fn_from_bytes(b, b37);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c37, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a38[32] = {0x66,0xe0,0xd3,0x72,0x39,0xa3,0x97,0x35,0x69,0x46,0x0a,0x3c,0x83,0x24,0x5b,0x4c,0x60,0x4b,0x90,0x97,0xa3,0xea,0x1a,0xe3,0xde,0x44,0xcc,0xc0,0x70,0x7d,0xf6,0xfd};
    static std::uint8_t b38[32] = {0x16,0x9e,0xb2,0xaf,0xf7,0xe9,0x49,0x81,0x9f,0xa6,0xe4,0x3b,0x56,0x36,0xf9,0xbc,0x83,0xfa,0x26,0x1a,0x8f,0x85,0x1c,0xe1,0x63,0x2a,0x4a,0xb9,0xe2,0xde,0x2b,0xa3};
    static std::uint8_t c38[32] = {0x57,0x4a,0xdc,0x03,0x14,0xc2,0x2d,0x57,0xd5,0xfe,0xe5,0x3a,0xf0,0xeb,0xf0,0xe6,0xf2,0x87,0x19,0xf4,0x8d,0xc2,0x8f,0xd5,0x42,0x09,0x9b,0x9c,0x2e,0xe5,0x85,0x78};
    sm2_fn_from_bytes(a, a38);
    sm2_fn_from_bytes(b, b38);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c38, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a39[32] = {0x52,0x9a,0xb9,0x73,0xf8,0x98,0xf3,0x23,0xda,0x56,0x53,0x37,0x5f,0xc5,0xf2,0x3e,0xa3,0xe8,0x8d,0xab,0x43,0x57,0x5b,0xf0,0x7f,0xa8,0x08,0x08,0xa2,0x1b,0x67,0x74};
    static std::uint8_t b39[32] = {0xe3,0x3d,0x79,0x6f,0x87,0x6e,0x34,0x15,0xb4,0x09,0xa4,0xdc,0xc2,0x72,0x68,0x82,0xc6,0x44,0x34,0x57,0xbd,0x61,0xfd,0x62,0x21,0x2c,0x4d,0xa1,0x1e,0xb6,0xf4,0x19};
    static std::uint8_t c39[32] = {0x55,0xa7,0x24,0x27,0xa0,0xcf,0x3a,0xf0,0x8a,0xf2,0xf8,0x58,0x30,0x05,0x65,0xd4,0x18,0xfc,0xfb,0x4e,0x71,0xef,0x0f,0x36,0xcc,0xa9,0xae,0xb3,0x7d,0x6f,0xa1,0xd8};
    sm2_fn_from_bytes(a, a39);
    sm2_fn_from_bytes(b, b39);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c39, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a40[32] = {0xc1,0xf6,0x2c,0x7f,0x16,0x42,0xc1,0xba,0x0a,0x8b,0x35,0x64,0xa1,0xb0,0x70,0x1a,0x64,0xf2,0xfb,0xd8,0x51,0x1a,0xd5,0x6c,0x42,0x52,0x88,0xf6,0x82,0x01,0x48,0xba};
    static std::uint8_t b40[32] = {0xec,0x8c,0xc0,0xe5,0xe0,0x08,0x71,0x19,0xcc,0x79,0x61,0x40,0x81,0x19,0xcb,0x55,0x8f,0x55,0x26,0x16,0xc7,0x7b,0x8d,0xd8,0xcc,0xcb,0x08,0x05,0x67,0x29,0x0c,0x2f};
    static std::uint8_t c40[32] = {0xbf,0x8d,0x05,0xcd,0x11,0x02,0xb9,0x7b,0x4b,0x7d,0xbd,0x21,0x1b,0xcc,0xac,0x71,0x9a,0x1e,0xd0,0x52,0xc5,0x98,0xe2,0xae,0x4f,0xe8,0x0c,0xb4,0x41,0x43,0xff,0xbd};
    sm2_fn_from_bytes(a, a40);
    sm2_fn_from_bytes(b, b40);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c40, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a41[32] = {0x46,0x1b,0x84,0x53,0x8f,0xe6,0x35,0xd7,0xc9,0xcd,0x3d,0xa6,0x3f,0xbc,0x01,0x8f,0xc4,0x01,0x76,0x26,0xfa,0x06,0x67,0x22,0x56,0x28,0x49,0x63,0x57,0x48,0xe0,0xf6};
    static std::uint8_t b41[32] = {0xbe,0xd2,0xcb,0x44,0x51,0xb7,0xc7,0x5d,0x0c,0x1c,0xc5,0x9e,0x3f,0x52,0xf4,0xab,0xd2,0x36,0xc9,0x13,0x22,0xd3,0x11,0x7d,0xdf,0x9f,0xaf,0x1d,0x03,0xad,0x9f,0xe4};
    static std::uint8_t c41[32] = {0x01,0x68,0xc4,0xac,0xd9,0x02,0x70,0xa8,0xb2,0xbe,0x4a,0x43,0x7c,0xb4,0xd1,0x2f,0x3f,0x96,0x18,0x26,0xbd,0x6c,0xf1,0xac,0x7b,0xbe,0x33,0x74,0x24,0xcd,0x55,0x8d};
    sm2_fn_from_bytes(a, a41);
    sm2_fn_from_bytes(b, b41);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c41, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a42[32] = {0xbd,0xfd,0x71,0x4c,0x5e,0xaf,0x1d,0x43,0x9f,0x80,0xcf,0xe6,0xcd,0x50,0x0b,0xf2,0x40,0xd7,0x14,0x74,0x25,0x01,0x86,0x34,0x6b,0x28,0x73,0x8e,0xc1,0xea,0x16,0x75};
    static std::uint8_t b42[32] = {0xa6,0x6e,0xb6,0xd0,0xd7,0xdb,0x68,0x23,0x64,0x37,0xff,0x67,0x8a,0x9b,0xed,0x78,0x50,0xeb,0xb1,0xac,0xd7,0x4d,0x9f,0xf9,0xcd,0x12,0xbf,0xac,0x03,0x50,0xc4,0x34};
    static std::uint8_t c42[32] = {0x37,0xe2,0x4f,0x5d,0x44,0x63,0x81,0xb1,0xd4,0x86,0xed,0x4b,0xf8,0x34,0xac,0x6b,0x3b,0xdc,0x66,0x99,0xd4,0x4c,0x39,0xcf,0x78,0xad,0xb6,0xc4,0xb4,0x05,0x58,0x65};
    sm2_fn_from_bytes(a, a42);
    sm2_fn_from_bytes(b, b42);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c42, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a43[32] = {0xce,0x02,0xd8,0xf5,0xb8,0xb5,0x3e,0x0c,0x53,0xa7,0x45,0x7e,0xbb,0x8b,0x5a,0x8b,0xcb,0x1e,0x91,0x47,0x30,0xca,0xdd,0x4d,0x26,0xaf,0x07,0x5c,0xdb,0xe8,0x3a,0x99};
    static std::uint8_t b43[32] = {0x76,0x58,0x0d,0xaa,0xef,0x3e,0xeb,0x42,0xd9,0x36,0x7b,0x89,0x03,0xcb,0xd1,0x46,0x61,0x47,0xa2,0x72,0x7d,0x7f,0xa7,0xc3,0x31,0x97,0x70,0x2b,0x4c,0x3e,0x0e,0x52};
    static std::uint8_t c43[32] = {0x44,0x1d,0x22,0xa5,0x4f,0xae,0x08,0x64,0x19,0xd2,0xc0,0x20,0xf5,0xa4,0x88,0x89,0xab,0x5d,0xf6,0x57,0x1a,0x29,0x0b,0xe2,0xe3,0x54,0xc6,0x4f,0x6c,0x7d,0xb8,0xd6};
    sm2_fn_from_bytes(a, a43);
    sm2_fn_from_bytes(b, b43);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c43, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a44[32] = {0xb4,0x95,0xc8,0x59,0x3a,0x63,0xfd,0xa7,0xb2,0x37,0x9c,0x0b,0x34,0x48,0xdd,0x77,0xa6,0x35,0xa0,0xd6,0xba,0xb8,0x25,0x85,0xf9,0x59,0x34,0x63,0x6b,0xf7,0x10,0xad};
    static std::uint8_t b44[32] = {0xd2,0x3b,0x7f,0x84,0x54,0x44,0xc3,0xa3,0x4a,0x66,0x09,0x29,0x4b,0x97,0x21,0x1b,0xc6,0x47,0xea,0xb0,0x33,0x5c,0x9e,0x8b,0x16,0x1e,0x09,0xa8,0xc0,0xc8,0x70,0x1b};
    static std::uint8_t c44[32] = {0xba,0x78,0x0d,0xc9,0xc6,0x2a,0x1b,0xeb,0x21,0x55,0x79,0xd2,0x09,0xa5,0xbd,0x1e,0x42,0x93,0x64,0x31,0xc0,0xfe,0xa9,0xea,0xc9,0x7f,0xb2,0x39,0x4c,0x12,0xe1,0x27};
    sm2_fn_from_bytes(a, a44);
    sm2_fn_from_bytes(b, b44);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c44, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a45[32] = {0x94,0xdf,0xd4,0x55,0x7b,0x8d,0x10,0xbe,0x1a,0xaf,0x02,0x4a,0x6a,0x3c,0x6c,0x46,0xae,0x14,0x7d,0x86,0x83,0xa4,0xc8,0x36,0x37,0x12,0x4d,0x29,0x45,0x88,0xd6,0x35};
    static std::uint8_t b45[32] = {0x52,0xff,0x03,0xe8,0xe2,0x27,0xd5,0x79,0x93,0x67,0x67,0xc0,0x73,0xbc,0x77,0xa9,0x7c,0xab,0xa8,0x5a,0x47,0xb4,0xe8,0x0c,0xe7,0xcf,0xba,0x8e,0x50,0x7d,0xb8,0xde};
    static std::uint8_t c45[32] = {0x4c,0xe7,0xa6,0x71,0xca,0xa8,0x3e,0xac,0x58,0xbd,0xfb,0x4e,0x58,0x00,0xb3,0x46,0xd5,0x67,0x32,0x88,0x4d,0xf6,0x3a,0xd8,0x29,0x0a,0x1b,0x1e,0x99,0xd0,0x90,0x98};
    sm2_fn_from_bytes(a, a45);
    sm2_fn_from_bytes(b, b45);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c45, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a46[32] = {0x28,0xdd,0xf4,0xc5,0xa8,0x39,0x48,0xee,0x89,0x4d,0xfc,0xac,0x62,0x09,0xdf,0x30,0x5b,0x7f,0x16,0x57,0x12,0x71,0xaf,0xe5,0x9c,0x3f,0x3a,0x19,0x3e,0xdf,0xd7,0x3c};
    static std::uint8_t b46[32] = {0x2f,0x20,0xde,0xb4,0xd8,0x04,0xa6,0x1a,0x81,0x15,0x97,0x8f,0xa0,0x91,0xa7,0x51,0x62,0x22,0x6b,0x08,0x42,0x93,0x40,0xef,0x9e,0x36,0x5a,0xac,0x59,0x94,0xb1,0xdd};
    static std::uint8_t c46[32] = {0xd0,0xb1,0xf5,0x21,0x85,0xb6,0x70,0x5f,0xde,0xe0,0xd1,0xfc,0x09,0xb6,0xa7,0xfb,0xc1,0x8d,0xd6,0x47,0x78,0x9e,0xc1,0x35,0xa6,0x04,0x77,0x75,0xfd,0xc4,0x13,0xca};
    sm2_fn_from_bytes(a, a46);
    sm2_fn_from_bytes(b, b46);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c46, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a47[32] = {0x0a,0xdd,0xfe,0x0e,0x4d,0xd3,0x83,0x5d,0x0f,0xfe,0x6c,0xf3,0xb7,0x52,0x91,0x1a,0xdc,0x7f,0x3f,0x84,0x96,0x28,0x9c,0x98,0xa7,0xb9,0x9f,0xbe,0xcb,0x54,0x51,0xd2};
    static std::uint8_t b47[32] = {0x54,0xf0,0x4a,0x36,0xf7,0xe6,0x6c,0x50,0xd9,0xb0,0xb9,0xcb,0xa1,0x60,0x3c,0x8f,0x1c,0x47,0x63,0xbc,0x78,0xe0,0xfb,0x3b,0xca,0x28,0xd6,0xb8,0x24,0xfa,0xcf,0xa2};
    static std::uint8_t c47[32] = {0x30,0x79,0x40,0x0d,0x0d,0x0a,0xae,0x7b,0xa7,0x6c,0x9e,0x55,0x4b,0x46,0xce,0xf5,0x4c,0x3b,0xb2,0xa8,0xdf,0xa8,0x36,0x5b,0x6f,0x7e,0xf5,0xfe,0xce,0x08,0x0d,0xf1};
    sm2_fn_from_bytes(a, a47);
    sm2_fn_from_bytes(b, b47);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c47, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a48[32] = {0x4e,0xaa,0x83,0x27,0xc4,0xc2,0x74,0x58,0x26,0xfa,0xa7,0x72,0x4e,0xd9,0xc0,0xa1,0x6c,0xee,0xaf,0xff,0x12,0x2a,0xfa,0x33,0x83,0x72,0xae,0x4b,0xc6,0xc5,0xc8,0x59};
    static std::uint8_t b48[32] = {0xaf,0xaf,0x51,0xc6,0x5e,0xcc,0xb2,0xf2,0xf6,0x0b,0xe0,0x99,0xfa,0xb8,0x2e,0x74,0x27,0xb5,0x44,0x8a,0x90,0x77,0x3c,0x86,0xc0,0xd3,0xc5,0x8d,0x1e,0x86,0xb7,0x9b};
    static std::uint8_t c48[32] = {0x69,0xd4,0xaf,0x4b,0x61,0xcc,0xf8,0x92,0x0c,0x8d,0xc2,0xce,0xa3,0x66,0x05,0xc0,0x6a,0x25,0x58,0xc1,0x56,0x35,0x15,0x96,0x98,0x7a,0x21,0x0b,0x22,0x83,0x3c,0xd3};
    sm2_fn_from_bytes(a, a48);
    sm2_fn_from_bytes(b, b48);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c48, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a49[32] = {0x65,0x7f,0x3a,0x89,0xd9,0x9a,0x60,0x57,0x26,0x5c,0xee,0x71,0x61,0x1c,0x9b,0x1d,0x15,0xec,0xdd,0xfa,0x83,0xd8,0xbb,0x5d,0x36,0x73,0xa8,0xae,0x22,0x4a,0xe5,0xf5};
    static std::uint8_t b49[32] = {0x61,0x27,0xe6,0x56,0xf1,0xc9,0x76,0x67,0xae,0x28,0x8e,0x26,0xc4,0x1a,0xe7,0x3a,0xcd,0xf1,0xb5,0xc7,0xa9,0x32,0x41,0x80,0x5b,0x60,0xa7,0x60,0xb7,0xd9,0xc4,0x3c};
    static std::uint8_t c49[32] = {0x37,0x0e,0xe1,0x35,0x13,0xf0,0x94,0xe3,0xb2,0xfc,0xaa,0x0c,0xc1,0x73,0x4a,0x8b,0x66,0x54,0xd7,0x1c,0xea,0x81,0x22,0xe6,0x59,0xd6,0x93,0xe9,0x27,0x46,0x58,0xaf};
    sm2_fn_from_bytes(a, a49);
    sm2_fn_from_bytes(b, b49);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c49, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a50[32] = {0x05,0x52,0xb3,0x21,0x49,0x93,0xa6,0x0f,0xb8,0x56,0xc0,0x18,0xbf,0x80,0x64,0xc8,0xe1,0xe0,0x77,0xe8,0xb2,0xb2,0xef,0xe4,0x99,0xcf,0x3e,0xea,0x79,0x71,0x81,0x2e};
    static std::uint8_t b50[32] = {0x65,0xd5,0x59,0xf8,0xb3,0xcf,0x1a,0xde,0x43,0xa3,0xdc,0xf6,0xab,0x21,0x57,0x61,0x99,0xfc,0xea,0xd7,0xd3,0x13,0xdd,0x5c,0x0c,0x91,0x9d,0x98,0xdc,0x71,0xb4,0x47};
    static std::uint8_t c50[32] = {0x61,0xc1,0xc9,0x9e,0x29,0x1e,0xe9,0x10,0x20,0x86,0x89,0x5e,0x76,0x43,0xd2,0x8d,0x00,0x76,0x4c,0x15,0xa0,0x03,0xc9,0xe8,0x8e,0xaf,0xb7,0xa7,0xaf,0xa0,0x77,0x3b};
    sm2_fn_from_bytes(a, a50);
    sm2_fn_from_bytes(b, b50);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c50, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a51[32] = {0x65,0x84,0xba,0xdc,0xf9,0x9d,0xe3,0xfd,0x0e,0x48,0x52,0xa6,0x67,0x06,0x88,0xc8,0x55,0x37,0xbe,0xa3,0xc6,0x0b,0xbf,0x6a,0x7c,0xdd,0xb1,0x21,0x87,0xd7,0x0f,0x7b};
    static std::uint8_t b51[32] = {0x9b,0xd5,0x5b,0x0a,0x06,0x4a,0x63,0xdb,0xc5,0x23,0x03,0xa9,0x6f,0x3e,0x17,0xab,0x5d,0xac,0x8f,0x8e,0xbe,0xdb,0x1b,0xab,0x0c,0xc1,0xde,0xb2,0xfd,0xb7,0x63,0xde};
    static std::uint8_t c51[32] = {0x04,0xd8,0x17,0x2f,0x62,0x2e,0x3a,0xb5,0x1d,0x02,0xe4,0xe8,0x97,0xe6,0x09,0x1f,0x13,0xe5,0x81,0x76,0xa0,0x32,0x64,0x1c,0xcc,0x38,0xab,0xeb,0x7d,0x02,0xef,0x5a};
    sm2_fn_from_bytes(a, a51);
    sm2_fn_from_bytes(b, b51);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c51, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a52[32] = {0xbf,0xdd,0xe8,0x52,0x55,0x7b,0xe4,0xfc,0x23,0x29,0x1d,0xce,0x65,0x0b,0x55,0xdb,0x63,0x93,0x9b,0xdb,0xac,0x2d,0x36,0x75,0x57,0xf5,0x10,0x15,0x17,0xb6,0x29,0x42};
    static std::uint8_t b52[32] = {0x21,0x5a,0xaf,0x50,0xcb,0x51,0x6c,0x28,0x15,0x56,0xd8,0xc3,0xbb,0x30,0xb1,0x1c,0xb7,0x48,0xd5,0xd9,0x15,0x4f,0xa7,0x43,0xd4,0x6e,0x82,0x54,0x77,0xaa,0x5a,0x25};
    static std::uint8_t c52[32] = {0x04,0x42,0x27,0xd7,0x34,0x6f,0x6b,0xf9,0xb7,0x2a,0xea,0xe8,0x30,0x4f,0x37,0xbe,0x7a,0xc8,0xc4,0x3f,0xa8,0xbe,0x72,0x91,0x6c,0x1d,0x1e,0x9a,0x1f,0x0e,0x6d,0x34};
    sm2_fn_from_bytes(a, a52);
    sm2_fn_from_bytes(b, b52);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c52, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a53[32] = {0x3c,0x9c,0xff,0x75,0xa5,0x44,0xf8,0x94,0x10,0x16,0x56,0xc9,0xeb,0x09,0x22,0x6f,0xc5,0xd4,0x47,0x4d,0x04,0x96,0x04,0xd5,0xc8,0x29,0x26,0x1a,0xbc,0x28,0xd9,0x18};
    static std::uint8_t b53[32] = {0x1b,0x2f,0xd2,0xe9,0x12,0x70,0xa9,0x25,0x2f,0x35,0x54,0x32,0x99,0x05,0xdb,0xd6,0x12,0xad,0x1d,0x90,0x0a,0x8e,0x2e,0x86,0x38,0xf2,0x78,0x60,0x08,0x8c,0xc6,0xed};
    static std::uint8_t c53[32] = {0x4e,0x8f,0xca,0x11,0x35,0x16,0x8f,0x78,0xb8,0x98,0xdb,0xaf,0x7b,0xd8,0x11,0x6a,0xf8,0xbf,0x60,0xb9,0x4f,0xf0,0x75,0x4b,0xb2,0xd8,0x00,0xbf,0xea,0x45,0x49,0x76};
    sm2_fn_from_bytes(a, a53);
    sm2_fn_from_bytes(b, b53);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c53, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a54[32] = {0x51,0x85,0x26,0x91,0x5a,0xe4,0x6b,0xc9,0xfc,0xca,0xa4,0x32,0x5e,0xcb,0x7a,0x39,0x7a,0x82,0x58,0xc3,0xaf,0x11,0x03,0xfc,0x4a,0x67,0x82,0x3b,0xbc,0xb4,0xa9,0x01};
    static std::uint8_t b54[32] = {0xb7,0xfb,0x1c,0xb6,0x79,0x1a,0xcf,0xe2,0xc2,0x8e,0xc0,0x2d,0x92,0x0a,0xde,0x27,0xcc,0xc5,0xc7,0x3c,0x42,0x1f,0x09,0xa4,0xcc,0xdd,0xb7,0x82,0x04,0x70,0x4f,0xf8};
    static std::uint8_t c54[32] = {0xca,0xad,0x96,0x66,0x8e,0x26,0x76,0x79,0x83,0xda,0x3c,0x20,0xa3,0x9f,0x01,0xad,0xb7,0x1a,0x43,0xe7,0xd2,0x0e,0x23,0x03,0x57,0x49,0x0b,0x69,0xc0,0x43,0x4f,0x1a};
    sm2_fn_from_bytes(a, a54);
    sm2_fn_from_bytes(b, b54);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c54, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a55[32] = {0xfa,0x5e,0xf4,0x95,0xd2,0x4b,0x60,0x33,0x1c,0xcd,0x31,0x49,0xd3,0xd3,0xab,0x41,0x1f,0x42,0xcd,0xe9,0x57,0x1b,0x83,0x0d,0x87,0x3e,0x8a,0xd4,0x86,0xc8,0xc4,0x29};
    static std::uint8_t b55[32] = {0x0d,0x51,0x6a,0x0c,0xfa,0x18,0xf5,0xc2,0xc4,0x95,0x56,0x2e,0x4b,0xf2,0x76,0x7e,0x19,0xc9,0xb0,0x27,0x1b,0x0b,0x56,0x7d,0x47,0x0a,0x52,0xc3,0xbc,0x04,0xed,0xc0};
    static std::uint8_t c55[32] = {0x8f,0x70,0xa8,0x69,0x7f,0x7f,0x7d,0xa0,0x4f,0x5d,0xc6,0xfe,0x21,0xb2,0x8c,0x22,0x5a,0x9c,0xaa,0x0a,0xba,0x9f,0x0b,0xd9,0x54,0x3b,0x76,0x2c,0x1b,0x8e,0x8f,0x21};
    sm2_fn_from_bytes(a, a55);
    sm2_fn_from_bytes(b, b55);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c55, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a56[32] = {0x5b,0x89,0xb5,0x80,0x40,0xab,0x6a,0x20,0xc0,0xb4,0x5d,0x9e,0x15,0x30,0x36,0x68,0xf2,0x20,0x0a,0x50,0x80,0x3b,0x43,0xf6,0x04,0xbf,0xc9,0x96,0xac,0x26,0x5c,0x1f};
    static std::uint8_t b56[32] = {0xd6,0xdd,0x6e,0xb0,0x52,0xd4,0x89,0x98,0x8d,0xf1,0xbc,0xf1,0x84,0x8d,0xca,0xbd,0xe9,0xec,0xc2,0xeb,0x34,0x0a,0x82,0x03,0x50,0x3e,0xa0,0x71,0x17,0xbd,0xa8,0xd3};
    static std::uint8_t c56[32] = {0x28,0x0e,0x46,0x38,0x19,0xbd,0xd8,0x58,0x6d,0xe2,0x0c,0x81,0xe6,0xfb,0x91,0xd4,0xcd,0x78,0x86,0xde,0xec,0x3f,0x63,0x0c,0x12,0xf7,0x4a,0x8c,0xa9,0x33,0x32,0x84};
    sm2_fn_from_bytes(a, a56);
    sm2_fn_from_bytes(b, b56);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c56, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a57[32] = {0xae,0x39,0xcc,0x3c,0xc0,0x15,0xa5,0x79,0xc4,0x61,0xff,0x8b,0xf9,0x1d,0xee,0x4a,0xa5,0x85,0xc8,0x9b,0x9b,0x45,0xe1,0xe5,0xea,0x9c,0xc6,0xc3,0x4d,0xd8,0x62,0xea};
    static std::uint8_t b57[32] = {0x8e,0x1a,0x33,0x40,0x07,0xbb,0x61,0xfc,0xf7,0x49,0xfd,0x78,0x66,0x3e,0x3e,0x72,0x6f,0xa5,0x0c,0x01,0xb7,0xd1,0x47,0x18,0xde,0x21,0xdf,0x2b,0x03,0x27,0x30,0x79};
    static std::uint8_t c57[32] = {0xd1,0xb9,0x1b,0x4a,0x67,0x7c,0xe3,0xd4,0x09,0x38,0xa2,0x6c,0xfd,0xcb,0xce,0x20,0xb2,0x53,0x8a,0x0d,0xe2,0x64,0xc9,0xf8,0xe6,0x89,0xee,0x9b,0xb9,0xe6,0xe3,0x01};
    sm2_fn_from_bytes(a, a57);
    sm2_fn_from_bytes(b, b57);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c57, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a58[32] = {0x0b,0xd6,0xb6,0xbf,0xb4,0x8f,0x42,0xdb,0xd6,0x0d,0x9b,0xf3,0xb8,0x4a,0xdf,0xa2,0x40,0xe9,0x18,0x12,0x13,0x2c,0x9a,0x75,0x38,0xce,0x7f,0xff,0xb8,0x8c,0x89,0xfb};
    static std::uint8_t b58[32] = {0xcb,0xd0,0xda,0xc8,0xf7,0x5b,0x9b,0x03,0x9f,0x96,0x73,0x12,0x43,0xde,0x46,0x62,0x87,0x56,0x60,0x1f,0x44,0x02,0x58,0xd7,0x83,0xe1,0x3e,0x35,0x0f,0x7d,0x3d,0xd1};
    static std::uint8_t c58[32] = {0x18,0xb6,0x76,0x3a,0x21,0xfc,0x50,0xfe,0x7c,0xb7,0xd5,0x9c,0xbd,0x25,0xb9,0x32,0xa4,0x6f,0x17,0x60,0x0d,0xd9,0x48,0xbc,0x5d,0x3c,0xeb,0x11,0x77,0x51,0x68,0xdb};
    sm2_fn_from_bytes(a, a58);
    sm2_fn_from_bytes(b, b58);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c58, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a59[32] = {0xec,0x9b,0x10,0xfa,0xe1,0xe4,0x75,0x1e,0xa7,0x29,0xcb,0x29,0x44,0x16,0x76,0xfc,0x31,0xb6,0x1b,0x8c,0xe2,0x24,0x17,0xd1,0x0e,0x64,0xfe,0xad,0x54,0x2e,0xda,0x66};
    static std::uint8_t b59[32] = {0xed,0xe9,0x9f,0x37,0xd8,0xd7,0xed,0xff,0x4f,0xcb,0x47,0x18,0x2d,0x9d,0xf2,0x44,0x2b,0x60,0x14,0xfb,0x68,0x03,0x2a,0xca,0xe1,0x91,0xd9,0x56,0xc3,0x2b,0x0a,0xc0};
    static std::uint8_t c59[32] = {0xe2,0x43,0x5e,0xc5,0x03,0xd7,0x65,0x35,0xd3,0x9c,0x17,0x1f,0xdc,0x4e,0x6b,0x4a,0x31,0xe5,0x53,0x9c,0x97,0xd0,0xde,0x58,0x4f,0x82,0xd2,0x0d,0xf8,0xed,0x01,0xd0};
    sm2_fn_from_bytes(a, a59);
    sm2_fn_from_bytes(b, b59);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c59, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a60[32] = {0xf7,0x4d,0x13,0xc5,0xc7,0xa3,0x6a,0x19,0x79,0x61,0xa7,0xab,0x4d,0x46,0xc8,0x39,0x61,0x9b,0x7b,0xe6,0x88,0x6c,0x8f,0x6c,0xe6,0xee,0x37,0xb2,0x38,0xac,0x7e,0x1b};
    static std::uint8_t b60[32] = {0xef,0x03,0x02,0x72,0xc5,0xa3,0xe1,0x7f,0x40,0x8d,0x8c,0xeb,0x6b,0x04,0x0e,0x0c,0xfc,0x2f,0xa1,0xed,0x1d,0x3c,0xa9,0x9c,0x13,0x32,0xcd,0x0e,0x71,0x4d,0xed,0x0f};
    static std::uint8_t c60[32] = {0xa5,0xd3,0xde,0xb8,0xe7,0x38,0xa7,0x6c,0x20,0xdc,0xc3,0x91,0x98,0x43,0xa0,0x9a,0x06,0x27,0xf5,0x30,0x6e,0x04,0x2d,0xd9,0x86,0x53,0x0a,0x49,0xe7,0x59,0xaf,0x53};
    sm2_fn_from_bytes(a, a60);
    sm2_fn_from_bytes(b, b60);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c60, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a61[32] = {0xed,0x8f,0x18,0xde,0x86,0x76,0x42,0x97,0x38,0xe0,0xa5,0x0f,0x97,0x86,0xea,0xb6,0xe4,0xc1,0xf7,0x4f,0x0c,0x70,0x05,0x87,0x3c,0x87,0x55,0xe7,0xd3,0xe1,0x10,0xa1};
    static std::uint8_t b61[32] = {0xbc,0xc8,0x64,0xb3,0xdb,0xff,0x03,0x0f,0xe1,0xa5,0x3e,0x51,0xe6,0x0d,0x04,0x69,0x56,0x2e,0x2b,0x99,0x97,0x71,0x76,0x35,0x9d,0x6e,0xc6,0x64,0xbf,0x77,0x29,0xe2};
    static std::uint8_t c61[32] = {0xdc,0x65,0xdf,0x88,0xd8,0x9b,0x19,0xc1,0xbe,0x73,0xe2,0xaa,0xa5,0x1c,0x78,0x89,0x3d,0x2b,0x9c,0xbb,0x3b,0xb3,0xd6,0xe5,0x3c,0x3b,0xe3,0x7c,0x63,0x97,0xc7,0xac};
    sm2_fn_from_bytes(a, a61);
    sm2_fn_from_bytes(b, b61);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c61, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a62[32] = {0xf8,0x35,0x1a,0x7b,0x1e,0x75,0x1f,0xe2,0x76,0x15,0x3c,0x06,0x03,0x7a,0x13,0x14,0x3e,0x47,0xb5,0xf7,0x5a,0x79,0x75,0xd6,0xfe,0xc2,0x7e,0x1c,0xdb,0x84,0x52,0x59};
    static std::uint8_t b62[32] = {0x06,0x2d,0x38,0x32,0xe2,0x54,0x95,0x8e,0x1b,0xb3,0x7f,0x52,0x32,0x34,0x31,0x94,0x75,0x0c,0x9e,0xee,0xd3,0xde,0xbd,0xd4,0x21,0xba,0x58,0x41,0x63,0x6c,0x73,0x2d};
    static std::uint8_t c62[32] = {0x98,0x4f,0x1f,0x30,0xf7,0x17,0xb3,0xe8,0xa6,0x4b,0x27,0xd2,0xe6,0xd1,0x3b,0xd0,0xd3,0xe0,0x85,0x73,0xc2,0x99,0xf1,0x84,0x78,0xdc,0x75,0x2a,0xfb,0x8a,0x71,0x37};
    sm2_fn_from_bytes(a, a62);
    sm2_fn_from_bytes(b, b62);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c62, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a63[32] = {0x8e,0xe4,0x15,0xed,0x0d,0x33,0x4f,0x3e,0xbd,0x24,0xe6,0x84,0x79,0x71,0xcc,0xd7,0xf4,0xad,0x52,0x69,0x5f,0x3e,0x24,0x8a,0x3f,0xc6,0xfb,0x86,0xae,0x32,0x4c,0xa3};
    static std::uint8_t b63[32] = {0x6f,0x92,0x04,0x23,0x7c,0x41,0xb3,0x00,0xc1,0x6e,0x38,0x3c,0x39,0xdd,0x91,0x00,0x98,0x7b,0x67,0xd0,0xf2,0x93,0x5e,0xc1,0x48,0x1d,0xae,0x00,0x36,0x9f,0xd0,0x19};
    static std::uint8_t c63[32] = {0x78,0x6b,0x94,0x00,0x01,0x79,0x36,0x5c,0xef,0x99,0xfb,0x5c,0x47,0xee,0xa4,0x37,0x91,0x80,0x8c,0x61,0xc4,0xb3,0x64,0x8e,0x98,0x5f,0x97,0x3a,0xc3,0x17,0xd9,0x30};
    sm2_fn_from_bytes(a, a63);
    sm2_fn_from_bytes(b, b63);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c63, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a64[32] = {0xa1,0xdf,0x4f,0xef,0xb1,0x56,0x82,0x71,0x0d,0x36,0xa9,0x53,0x52,0xb9,0xe7,0x95,0x81,0x6b,0x5e,0x78,0x55,0x7b,0xf1,0x5d,0xc6,0x64,0x63,0x45,0xbf,0x1f,0x72,0x0f};
    static std::uint8_t b64[32] = {0xb8,0x25,0xff,0xe3,0x86,0x5f,0x51,0xb0,0xd8,0x55,0x11,0x25,0xe8,0x01,0x0b,0x4d,0x1a,0x63,0xbb,0x9f,0x00,0xf9,0x6c,0x6b,0x86,0xa6,0xf3,0x72,0x17,0x1a,0xc5,0x44};
    static std::uint8_t c64[32] = {0x4c,0x35,0xed,0x7c,0x0b,0x7f,0x2f,0xe2,0xd9,0xd9,0x47,0x8c,0xb5,0xbf,0x78,0x08,0xee,0xab,0x34,0x20,0x64,0xa8,0xd7,0x13,0x35,0xa2,0xbc,0x4d,0x9d,0x5b,0x54,0x90};
    sm2_fn_from_bytes(a, a64);
    sm2_fn_from_bytes(b, b64);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c64, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a65[32] = {0x50,0x30,0xd9,0xb6,0x2a,0xa9,0x40,0x05,0x3c,0x85,0x48,0x25,0x16,0xbf,0x50,0x30,0x9c,0xac,0x3c,0xe0,0x51,0xd8,0xd8,0x97,0x64,0x43,0x42,0x37,0x34,0xce,0x97,0x57};
    static std::uint8_t b65[32] = {0x48,0x0e,0x24,0x51,0x1c,0xa7,0xeb,0xdf,0xbd,0xde,0x57,0x74,0x61,0x84,0xac,0x14,0xef,0xaf,0x96,0xa8,0x50,0xa5,0x41,0xb7,0xba,0x98,0x2d,0xf6,0x44,0x46,0x2f,0xc5};
    static std::uint8_t c65[32] = {0x50,0x02,0x95,0x83,0x3f,0xd8,0x6f,0x56,0x00,0x82,0x78,0x02,0x7b,0x0d,0x73,0x36,0x56,0x34,0x87,0x13,0xab,0xdc,0x5b,0x0d,0xf2,0x1c,0x0e,0x74,0xe7,0xbe,0xc8,0x3a};
    sm2_fn_from_bytes(a, a65);
    sm2_fn_from_bytes(b, b65);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c65, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a66[32] = {0xe9,0xcb,0x73,0xdc,0xf3,0xad,0x7b,0x57,0xe8,0xd6,0x42,0xe8,0x26,0x4a,0x66,0xde,0x13,0xa6,0xd8,0x0c,0x8c,0xe1,0x8a,0xab,0xa3,0x7b,0xd1,0xfa,0x44,0x90,0x21,0xed};
    static std::uint8_t b66[32] = {0xf5,0x6f,0x65,0x05,0x97,0x17,0x35,0x7f,0x31,0x6c,0xe4,0x86,0xb4,0x55,0x79,0x5b,0x8e,0x89,0x81,0xe3,0x3e,0x3c,0x9c,0xcd,0x27,0x7a,0x96,0x2a,0x53,0xd1,0x00,0x93};
    static std::uint8_t c66[32] = {0x07,0x73,0xfd,0xdd,0x8c,0xc7,0x8d,0xbc,0xbe,0x75,0xd1,0x3b,0x9d,0x0d,0x33,0xf6,0xab,0x3c,0xd1,0x44,0xdc,0x14,0x75,0x49,0x8e,0x70,0xaf,0xfb,0x8d,0xf0,0x41,0xd5};
    sm2_fn_from_bytes(a, a66);
    sm2_fn_from_bytes(b, b66);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c66, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a67[32] = {0xe8,0x9b,0x0c,0x6f,0x2f,0x0d,0x43,0xa7,0x35,0xf7,0x45,0xa2,0x8d,0xdc,0x5a,0x51,0x7f,0x12,0x1a,0xb5,0x10,0xb8,0x96,0xeb,0xfa,0x3b,0x90,0x18,0xd6,0x0f,0x16,0x88};
    static std::uint8_t b67[32] = {0xfd,0xda,0x13,0x75,0xd6,0xe5,0xd0,0x76,0x27,0x59,0x7d,0x08,0x7b,0x60,0x30,0xc5,0xda,0x29,0x97,0xf7,0xc7,0xf7,0x1f,0x53,0x23,0x65,0x8e,0xdb,0xa7,0xf0,0xcf,0xc9};
    static std::uint8_t c67[32] = {0x04,0x72,0x28,0x9c,0xad,0xc9,0xd2,0x90,0x63,0x5d,0x8a,0xee,0x7e,0xd2,0x59,0x33,0xe3,0x51,0x2b,0x90,0xfe,0x01,0x39,0x91,0x9e,0x5a,0x6c,0x10,0xdc,0x31,0x66,0xf8};
    sm2_fn_from_bytes(a, a67);
    sm2_fn_from_bytes(b, b67);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c67, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a68[32] = {0x7d,0x1d,0x67,0x1d,0xdf,0xe8,0x60,0x4c,0x92,0x40,0x0a,0x02,0xd0,0xc2,0x71,0xa0,0x08,0xa5,0x23,0x13,0x5e,0x82,0xcc,0xa2,0x41,0x7a,0x25,0x13,0xef,0x66,0xfb,0x83};
    static std::uint8_t b68[32] = {0x97,0xe7,0x7e,0x4b,0x72,0xca,0x7f,0x93,0x8f,0x9f,0x38,0x2f,0xd1,0xc6,0xe5,0x6c,0xe5,0x99,0x30,0xf3,0x51,0x6f,0x02,0x59,0xbc,0x9d,0xaf,0x83,0xf8,0x2b,0x35,0x96};
    static std::uint8_t c68[32] = {0x01,0x10,0x87,0xe3,0x3c,0x60,0xad,0x4b,0x6b,0x0a,0xba,0xd7,0x54,0x9e,0xf5,0xea,0x5b,0x00,0x46,0xc1,0x96,0x14,0x15,0x52,0x15,0x05,0xe6,0x60,0xbf,0x67,0x12,0xe9};
    sm2_fn_from_bytes(a, a68);
    sm2_fn_from_bytes(b, b68);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c68, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a69[32] = {0x1d,0xbf,0x3f,0xd3,0x71,0x90,0x76,0xfe,0x5d,0x51,0x5f,0x85,0x2b,0x9a,0x88,0xf1,0x13,0x51,0x2a,0x90,0xc7,0x3d,0xbe,0x2d,0x6d,0x0a,0x94,0x3f,0xfb,0xd1,0x75,0x81};
    static std::uint8_t b69[32] = {0x28,0x97,0x0b,0x9d,0x60,0xb1,0x09,0x26,0x0a,0xe1,0x45,0xc7,0x1d,0x55,0x08,0x4f,0xd1,0xb1,0xfe,0x3a,0x3e,0x08,0x4f,0x6d,0x65,0x40,0x82,0xd9,0xe5,0x99,0x35,0x4e};
    static std::uint8_t c69[32] = {0xfa,0xe2,0xee,0x69,0xbd,0x36,0x74,0x29,0x76,0x97,0xe2,0x00,0x68,0x02,0x8c,0x6d,0x6f,0x6b,0xab,0xd6,0x70,0x1f,0x92,0x97,0xcc,0x57,0x1f,0x77,0xc8,0xe0,0x23,0x9e};
    sm2_fn_from_bytes(a, a69);
    sm2_fn_from_bytes(b, b69);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c69, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a70[32] = {0x04,0xd6,0xdb,0xff,0xd8,0x30,0xef,0xb5,0x02,0x08,0xd2,0xa3,0xc8,0xcf,0x5d,0x59,0x1b,0x7f,0x67,0xdd,0xc2,0x55,0x64,0xa8,0x8d,0xa0,0x80,0x2a,0xf9,0x55,0xe1,0xc2};
    static std::uint8_t b70[32] = {0x3c,0xf6,0x3e,0x50,0x56,0xc8,0xad,0x26,0x42,0xa0,0x12,0x7a,0x16,0xaa,0x33,0x69,0x01,0x00,0x5e,0x5e,0x98,0x7b,0xaa,0x4d,0x8d,0x08,0x75,0xde,0x45,0x02,0xa1,0x9b};
    static std::uint8_t c70[32] = {0x68,0xe9,0xbe,0xc2,0x47,0xaf,0xea,0xd4,0xbd,0x58,0xcd,0x25,0x05,0x63,0xc3,0xab,0x1e,0x03,0x31,0x9e,0x04,0xb0,0x95,0x99,0xe0,0x66,0x15,0x34,0x7c,0x4a,0x44,0x7c};
    sm2_fn_from_bytes(a, a70);
    sm2_fn_from_bytes(b, b70);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c70, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a71[32] = {0x44,0x72,0xb3,0xed,0x3b,0x7c,0x0e,0xc2,0x53,0xf9,0x90,0x69,0x7b,0x4f,0x1f,0xa3,0x41,0x80,0x6c,0xbf,0xbf,0x8b,0xca,0x38,0x61,0x4a,0xac,0x29,0xa3,0x90,0x80,0x63};
    static std::uint8_t b71[32] = {0xe2,0xa0,0x8a,0x34,0x4e,0x94,0xf8,0x04,0x42,0x8d,0x3f,0xb3,0x56,0x93,0x43,0xb3,0x7e,0x3c,0x21,0xfd,0x6a,0xe4,0x2b,0x6a,0xa8,0x58,0xe0,0xdd,0x9d,0xb1,0x3f,0xe8};
    static std::uint8_t c71[32] = {0x06,0x56,0x24,0x8a,0x6a,0x88,0x95,0x9f,0x9f,0x97,0xb6,0xcf,0xcd,0x6a,0xee,0x60,0x18,0xb4,0x61,0x05,0xb7,0x28,0x6c,0xfd,0x49,0x27,0x50,0x80,0x30,0x69,0x55,0xed};
    sm2_fn_from_bytes(a, a71);
    sm2_fn_from_bytes(b, b71);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c71, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a72[32] = {0xca,0x70,0xf2,0x1e,0xe7,0x81,0x10,0x7a,0xe3,0x55,0xb4,0x1a,0x28,0xe4,0x7e,0x70,0x66,0xb2,0x0c,0xe2,0xc3,0x0e,0x27,0x3a,0xd3,0x61,0xb0,0x27,0xc2,0x0e,0x43,0x9f};
    static std::uint8_t b72[32] = {0x10,0x59,0x71,0x5d,0xa1,0x09,0x9f,0xf0,0xac,0xb7,0xf0,0x30,0xdd,0x6b,0xcc,0xf5,0xec,0x20,0x7e,0xe9,0xe1,0xd5,0xdf,0xcb,0x12,0x33,0x0b,0x8c,0x8e,0x1f,0x0a,0xb4};
    static std::uint8_t c72[32] = {0x2c,0x48,0xd5,0x26,0x75,0xf7,0xed,0xc2,0x92,0x09,0x00,0xff,0xcb,0x9d,0x39,0x91,0x48,0xd5,0x6d,0x3e,0xfb,0x74,0x47,0xdf,0x56,0x51,0x25,0xea,0xa9,0x61,0x8c,0xff};
    sm2_fn_from_bytes(a, a72);
    sm2_fn_from_bytes(b, b72);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c72, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a73[32] = {0xd1,0xa5,0x7c,0xd2,0xb6,0x63,0xd6,0xe5,0x18,0x8f,0xcb,0xbc,0x50,0x4b,0xb4,0x96,0x7f,0x39,0xd3,0x76,0xba,0x76,0x5e,0x38,0xf5,0x0d,0x77,0x97,0xaf,0xad,0x3a,0xcc};
    static std::uint8_t b73[32] = {0x69,0x4d,0xb9,0xdc,0xf3,0x9f,0xce,0x59,0x8b,0x9a,0xad,0xf7,0xc7,0x79,0xa7,0x56,0xcb,0xee,0xe7,0xbb,0xfc,0xc0,0x01,0x04,0x0f,0x50,0x73,0x1f,0xc0,0xb8,0x90,0x39};
    static std::uint8_t c73[32] = {0xce,0x3b,0x91,0x72,0x23,0x80,0xcd,0xe6,0xca,0xec,0x2a,0xd8,0x2c,0xc4,0xaa,0xbe,0x76,0x58,0xdd,0xd8,0x70,0xb2,0xd4,0xb6,0x42,0x6d,0xd8,0x14,0xee,0xb4,0x62,0x9b};
    sm2_fn_from_bytes(a, a73);
    sm2_fn_from_bytes(b, b73);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c73, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a74[32] = {0x85,0xe6,0x4e,0xb1,0xd3,0x59,0xbc,0x54,0xa8,0x52,0x4d,0xad,0xa0,0xa7,0xf7,0x52,0x6a,0xd6,0xf6,0x75,0x06,0xc6,0x2a,0x50,0x5b,0xae,0xaa,0x69,0x2f,0xc8,0xda,0x90};
    static std::uint8_t b74[32] = {0xdf,0x93,0xe4,0xa8,0xd4,0x48,0xca,0x4e,0x7b,0xdd,0x0c,0xb5,0x17,0xfe,0x7a,0x3f,0xee,0x1f,0x52,0xd9,0x73,0x8d,0x69,0xa4,0x36,0x55,0x00,0x97,0xbe,0x81,0x21,0x9e};
    static std::uint8_t c74[32] = {0xdb,0x7e,0xd4,0x65,0xc7,0xb8,0x62,0x2c,0x9a,0xe6,0xd2,0x62,0xbf,0xca,0xc7,0x6d,0xaf,0xe8,0x4e,0x07,0xdc,0xd4,0x59,0x45,0xca,0x87,0x0f,0x2c,0x86,0x42,0x9e,0xda};
    sm2_fn_from_bytes(a, a74);
    sm2_fn_from_bytes(b, b74);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c74, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a75[32] = {0x58,0x90,0xd7,0x1f,0x70,0x46,0x55,0x74,0x86,0x0a,0x86,0x62,0x23,0xd1,0x8b,0x0a,0x5f,0x99,0x45,0x51,0x11,0x62,0x69,0xaa,0x03,0xdd,0xfc,0xa7,0x6d,0x06,0x13,0xea};
    static std::uint8_t b75[32] = {0xf7,0xd6,0x97,0xfa,0x67,0x94,0xae,0xc5,0x15,0x2d,0x00,0xe6,0x80,0x97,0xe4,0x75,0xb0,0x18,0xe6,0xec,0x06,0x4c,0xbe,0x38,0xcf,0x76,0xfb,0x2e,0x75,0xbb,0x7b,0xbc};
    static std::uint8_t c75[32] = {0xac,0x3c,0x1b,0x43,0x06,0x58,0x5d,0x09,0x71,0x4f,0x0a,0x1b,0x90,0x07,0x43,0xfd,0x5e,0xee,0x46,0x5f,0xfd,0xd1,0x74,0x3c,0x95,0xb9,0x5a,0xed,0x4e,0x37,0x7d,0x87};
    sm2_fn_from_bytes(a, a75);
    sm2_fn_from_bytes(b, b75);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c75, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a76[32] = {0xee,0x29,0x20,0x3c,0xba,0x02,0x66,0xa5,0x63,0xb4,0x84,0x4c,0x2f,0xbb,0xdb,0xcc,0xc4,0x22,0x54,0xd5,0x33,0x9c,0x93,0xf2,0x9b,0xa5,0xfa,0x7c,0xf4,0x8d,0x5f,0xe3};
    static std::uint8_t b76[32] = {0x73,0xbe,0xe4,0xd6,0x3f,0x40,0x9f,0x5e,0x13,0xd9,0xf1,0xf5,0xdb,0xaa,0x12,0x64,0xb2,0xf6,0x05,0x66,0x00,0xed,0xb7,0x48,0xa8,0xa8,0x01,0x3a,0x3c,0xc1,0x5b,0x50};
    static std::uint8_t c76[32] = {0xe9,0x40,0xe2,0x4f,0x0e,0xc5,0x99,0xbd,0xbe,0x24,0x63,0xfe,0xa6,0x1d,0x74,0x3b,0x3a,0x69,0x03,0x08,0x9f,0xad,0x40,0x4a,0x3f,0x6c,0x79,0x5c,0xde,0x62,0xd6,0x63};
    sm2_fn_from_bytes(a, a76);
    sm2_fn_from_bytes(b, b76);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c76, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a77[32] = {0xbd,0x57,0xa8,0xcb,0xcc,0x37,0x4d,0xe1,0xdd,0xb1,0xa2,0xf6,0xa2,0x31,0xec,0x69,0xb7,0xa7,0x05,0xda,0xbc,0x37,0xdf,0xcd,0x75,0x84,0xe7,0x07,0x5a,0xb9,0x2d,0x07};
    static std::uint8_t b77[32] = {0x1a,0x03,0x92,0xd4,0x8b,0x62,0x9d,0xb5,0x9b,0x7e,0xed,0x2c,0xdb,0x3e,0xcd,0x86,0x17,0x2c,0xf5,0xf6,0x82,0xeb,0x69,0xba,0xaa,0xdd,0xc5,0xc6,0x49,0x90,0xd6,0xed};
    static std::uint8_t c77[32] = {0x9c,0x58,0x3d,0x16,0x76,0x0a,0x75,0x57,0x3a,0x5f,0x1a,0x34,0x20,0x1a,0x27,0x42,0x84,0x93,0x14,0xe4,0x73,0x6d,0x91,0xc8,0x95,0xcc,0xed,0x50,0xc7,0x40,0x8d,0xf0};
    sm2_fn_from_bytes(a, a77);
    sm2_fn_from_bytes(b, b77);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c77, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a78[32] = {0x2d,0xcd,0x1c,0x49,0xd6,0x5b,0x5c,0x17,0xa6,0x4d,0x6d,0x76,0x6e,0x38,0x3a,0x49,0x7c,0x12,0x01,0x89,0x50,0x0e,0xee,0x69,0x51,0x47,0xc3,0x86,0xdf,0x11,0x35,0xec};
    static std::uint8_t b78[32] = {0x94,0xb7,0x94,0xd2,0x1b,0x00,0xde,0x78,0xb5,0x69,0x57,0xd9,0xa2,0xaa,0xc2,0xa0,0xc7,0xd1,0xe9,0xbb,0x97,0x58,0x17,0x79,0xfb,0x2b,0x24,0x34,0x23,0x32,0x4a,0xee};
    static std::uint8_t c78[32] = {0x0e,0x20,0xfb,0x8f,0xa1,0x32,0x9d,0xe7,0x82,0x79,0xed,0x78,0x6f,0xa2,0xbf,0x6e,0x0b,0xd6,0xe8,0x9d,0x1d,0x07,0xc0,0xa3,0x8c,0x76,0xda,0x7b,0xb0,0x4b,0x5f,0x7e};
    sm2_fn_from_bytes(a, a78);
    sm2_fn_from_bytes(b, b78);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c78, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a79[32] = {0x39,0xc6,0x3e,0xcb,0x42,0xe0,0xdd,0x06,0x0b,0x48,0x82,0xd5,0x93,0xc1,0x90,0x2a,0x98,0x4c,0xb2,0x84,0x2e,0x41,0xd5,0xd2,0x84,0xf4,0xfc,0x2f,0x65,0x18,0x1d,0xca};
    static std::uint8_t b79[32] = {0xf7,0x8e,0xe9,0xfc,0xc0,0x41,0x81,0x2d,0x32,0xc7,0x52,0x3e,0x94,0xca,0x0c,0xc6,0x52,0xb1,0x2c,0x8f,0x80,0xde,0x09,0x5f,0xb2,0x4f,0xd9,0xf8,0x7d,0x0d,0xf6,0xf6};
    static std::uint8_t c79[32] = {0x94,0x61,0xf1,0x01,0x1f,0xda,0xa7,0xb2,0xeb,0xd4,0xf9,0xec,0xd2,0xb4,0x3d,0xe3,0x9d,0x67,0xdb,0xf2,0xde,0xc1,0xf4,0x63,0xd6,0x13,0xb7,0xf9,0x3a,0x15,0x49,0xfe};
    sm2_fn_from_bytes(a, a79);
    sm2_fn_from_bytes(b, b79);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c79, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a80[32] = {0x14,0x6c,0x1d,0x88,0x7e,0x70,0x5c,0xf3,0x62,0x4a,0x1b,0xc6,0x88,0x61,0x01,0x7c,0x39,0xda,0x7e,0xd9,0x0d,0x53,0x98,0xe2,0xe2,0x19,0xe2,0x7d,0xf3,0x52,0xa7,0x8a};
    static std::uint8_t b80[32] = {0x9b,0x30,0x0c,0xc9,0xe8,0x46,0x11,0x54,0x4d,0x96,0xde,0x65,0xb2,0x79,0xbd,0xb3,0x5a,0xce,0x18,0xfb,0xe2,0x8f,0x5b,0x81,0x5a,0x7e,0x2e,0x24,0x10,0x57,0x6f,0x93};
    static std::uint8_t c80[32] = {0x5a,0x95,0xc4,0x9e,0xf4,0xff,0x49,0xc5,0xba,0x89,0xa6,0xcc,0x54,0xf2,0x36,0xa6,0x1f,0xe2,0x12,0x2d,0x1b,0x35,0x2e,0x15,0xca,0x71,0x42,0xff,0x94,0xa2,0x58,0x49};
    sm2_fn_from_bytes(a, a80);
    sm2_fn_from_bytes(b, b80);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c80, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a81[32] = {0x01,0x83,0xca,0xac,0x47,0x49,0x73,0x80,0xa2,0xff,0xf3,0x8d,0xae,0x80,0xf6,0xf5,0xc6,0x87,0xca,0x66,0x42,0x4c,0xf0,0x50,0xa0,0xa5,0x29,0xfd,0x68,0x32,0x0d,0xb1};
    static std::uint8_t b81[32] = {0x95,0xec,0xaf,0x39,0x99,0xaf,0x05,0x3c,0x00,0xae,0xb2,0x76,0xd0,0xd3,0xe0,0x01,0x75,0x3b,0xc3,0x75,0xae,0x66,0x13,0x11,0x71,0xaa,0xce,0x47,0xe3,0xc4,0x9c,0x35};
    static std::uint8_t c81[32] = {0xd5,0x4a,0x3f,0xfb,0xef,0xa6,0x1d,0xe4,0xfb,0xae,0xe6,0xcc,0x4c,0xf1,0x8b,0x01,0x1a,0xf6,0x67,0x79,0x42,0x10,0xeb,0x64,0x8f,0xb6,0xb8,0x89,0xa1,0x85,0x52,0x94};
    sm2_fn_from_bytes(a, a81);
    sm2_fn_from_bytes(b, b81);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c81, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a82[32] = {0x69,0xac,0x12,0x8c,0xd3,0xec,0x1d,0xbb,0x8f,0x8a,0x1e,0xfa,0xc3,0x05,0xd9,0x7a,0xdd,0x60,0x20,0x53,0x74,0x6b,0xa9,0xb4,0x70,0x2e,0x74,0x5b,0xd4,0xa0,0xeb,0xa1};
    static std::uint8_t b82[32] = {0x69,0xbe,0xda,0x8a,0x11,0x8d,0x1a,0x33,0x0e,0xc9,0xe2,0xe5,0x12,0xac,0xb3,0x73,0xc5,0xaa,0x53,0xae,0x98,0x32,0x21,0x36,0x7c,0x2f,0x49,0x3f,0x40,0x63,0xbd,0xd9};
    static std::uint8_t c82[32] = {0x9f,0x51,0x01,0x4f,0xfc,0x6f,0xe5,0x00,0xaf,0x51,0x38,0xca,0xa8,0xe5,0x1c,0x55,0x8b,0x72,0x84,0xd3,0x68,0xf5,0x76,0xcf,0xd7,0xf1,0xae,0x37,0xf6,0xf6,0x01,0x72};
    sm2_fn_from_bytes(a, a82);
    sm2_fn_from_bytes(b, b82);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c82, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a83[32] = {0xcb,0xf6,0xe2,0x01,0x6b,0x8d,0xd4,0x11,0xa4,0xe2,0x12,0xfd,0xf7,0x21,0x40,0xfc,0x37,0xff,0xdb,0x09,0x97,0xe4,0x8d,0xda,0x4a,0x98,0xed,0xff,0x28,0x97,0xd3,0x03};
    static std::uint8_t b83[32] = {0xfa,0xa9,0x3e,0x4a,0x4b,0x25,0x17,0xe7,0x38,0x00,0xcb,0xcd,0x8c,0xbe,0x3a,0xed,0xe9,0xd2,0x6b,0x6e,0x38,0xf7,0x64,0x6b,0x58,0x4a,0x6a,0x46,0x0e,0xfb,0x9c,0x28};
    static std::uint8_t c83[32] = {0xa5,0xaf,0x55,0x2a,0x98,0xc3,0x39,0x6e,0xda,0xe8,0xca,0x8e,0x09,0x5a,0x3b,0xad,0xbb,0x5f,0x2a,0x42,0xc0,0xda,0x87,0x58,0x99,0xda,0xf3,0x45,0x43,0x61,0x5e,0x39};
    sm2_fn_from_bytes(a, a83);
    sm2_fn_from_bytes(b, b83);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c83, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a84[32] = {0x5c,0x66,0x85,0xdc,0x2b,0x7d,0xb7,0xf4,0x46,0x64,0x7b,0xe8,0x2e,0xdf,0x86,0xd1,0xe5,0xa5,0x82,0x86,0x97,0x04,0xa1,0x87,0x7c,0x01,0x77,0x1b,0xae,0x7e,0xe5,0xbd};
    static std::uint8_t b84[32] = {0x58,0xe7,0xed,0x09,0xdb,0x5d,0xe5,0xe9,0x2c,0x99,0x9d,0x25,0x03,0xf2,0xf3,0x0c,0x83,0xad,0x87,0xc2,0x66,0x89,0xfb,0xa4,0xb9,0x2d,0x38,0x97,0xc4,0xba,0x2d,0x70};
    static std::uint8_t c84[32] = {0x62,0x9f,0x6e,0xb5,0xa9,0x38,0x32,0xff,0x2f,0xaf,0xde,0xc4,0x49,0xd2,0xc8,0x5c,0x4f,0xa7,0xdc,0xb1,0x38,0x3b,0x9b,0xcb,0xb0,0x8c,0x54,0x91,0x4a,0xd0,0xaa,0x3d};
    sm2_fn_from_bytes(a, a84);
    sm2_fn_from_bytes(b, b84);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c84, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a85[32] = {0x41,0x3e,0x6e,0xf6,0xea,0x7b,0xef,0x70,0x28,0x6e,0xf9,0xb9,0x6e,0x3b,0xa7,0x4c,0x3d,0xa8,0x2a,0xc8,0x97,0x15,0x66,0x85,0xca,0xa0,0x67,0xaf,0xde,0x7a,0x61,0x9d};
    static std::uint8_t b85[32] = {0xb9,0x44,0x0b,0x47,0xfb,0xf6,0xc7,0xef,0x94,0xd4,0x78,0xf1,0x6e,0x35,0x5b,0x72,0xc6,0xd4,0xaf,0xe9,0xaa,0x92,0x8b,0x4f,0xcb,0xed,0x35,0xbe,0x79,0x84,0xb5,0xdb};
    static std::uint8_t c85[32] = {0xca,0xb2,0x84,0xe2,0xe2,0xa6,0xc2,0x4f,0xaf,0x0b,0x0d,0x1d,0x5f,0x38,0xe5,0x08,0xf5,0x2e,0x94,0x88,0xa9,0x88,0x13,0x38,0x1a,0xc6,0xee,0x16,0x3e,0xf1,0xa2,0x39};
    sm2_fn_from_bytes(a, a85);
    sm2_fn_from_bytes(b, b85);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c85, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a86[32] = {0x7a,0x49,0x3a,0xbe,0x1b,0x31,0x93,0xfe,0xd0,0x03,0xba,0x7f,0x45,0x2c,0xfb,0xcc,0xa8,0x1a,0x06,0xeb,0x18,0x22,0x7d,0x3c,0x78,0x53,0xea,0x22,0x5f,0xa0,0x5f,0x28};
    static std::uint8_t b86[32] = {0x08,0x07,0x16,0x2f,0xbd,0x84,0x7d,0x38,0xc2,0x67,0xc2,0x35,0x55,0x64,0x55,0xab,0x96,0xc3,0xa8,0x33,0x61,0xa8,0x20,0x5e,0x65,0xd2,0x74,0x29,0xfe,0xf1,0xcf,0x41};
    static std::uint8_t c86[32] = {0x2a,0x6c,0x57,0x66,0xe8,0xf1,0xc7,0x90,0xf0,0x04,0xbf,0x9c,0x71,0x7a,0x2b,0x06,0x01,0xbb,0x8d,0x4d,0x85,0x22,0x8e,0xe2,0x02,0x61,0xba,0x55,0xe8,0x73,0x4f,0xbd};
    sm2_fn_from_bytes(a, a86);
    sm2_fn_from_bytes(b, b86);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c86, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a87[32] = {0x07,0x6d,0xbe,0xe5,0x93,0xb2,0x02,0x22,0x35,0x3e,0x7d,0x56,0x71,0xbd,0xe1,0x2a,0x29,0xda,0x31,0xff,0xfc,0x36,0xac,0x13,0x6e,0xd6,0x2d,0xd3,0x24,0x56,0xf5,0x0b};
    static std::uint8_t b87[32] = {0xc6,0xb0,0xd2,0x3d,0x52,0x15,0xd6,0xf6,0xa9,0x3f,0x4e,0x5c,0xd9,0x7f,0x6b,0xb2,0xb0,0x6b,0x56,0xe4,0x6c,0xdd,0xdf,0x41,0xca,0x7a,0x29,0xff,0xd7,0x51,0xcd,0x2a};
    static std::uint8_t c87[32] = {0x1f,0xd6,0x55,0xe8,0x40,0xff,0x9e,0x9f,0x07,0x19,0xfb,0x90,0x87,0x08,0x55,0xc3,0x86,0xbf,0x3e,0xa7,0x73,0x37,0x94,0xb4,0x8e,0xf2,0xf8,0x27,0x87,0xf4,0xb7,0xc4};
    sm2_fn_from_bytes(a, a87);
    sm2_fn_from_bytes(b, b87);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c87, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a88[32] = {0x4e,0xd0,0xcf,0x54,0x42,0x3c,0x1f,0x9d,0x06,0x04,0xde,0xc5,0xfa,0xa6,0x6f,0x6c,0x24,0xfa,0x54,0x4d,0x18,0x9a,0x01,0xf2,0xf8,0x47,0xcb,0x5b,0x2a,0x32,0x49,0x29};
    static std::uint8_t b88[32] = {0xf5,0x46,0xec,0xc1,0x1b,0x18,0xd5,0x0e,0xc6,0x67,0x1a,0x27,0x9b,0xc2,0x71,0xce,0x81,0xcd,0x3f,0xb0,0x72,0x3e,0x85,0xd7,0x49,0x29,0xf2,0x96,0xde,0x19,0x61,0x98};
    static std::uint8_t c88[32] = {0x3b,0xc5,0x23,0xa8,0x14,0x02,0x33,0x19,0x08,0x69,0x6d,0xbe,0x08,0x8c,0x75,0x51,0x3b,0x4e,0x6e,0x32,0x82,0x67,0xeb,0x65,0xec,0x2c,0x93,0xe2,0x8f,0x20,0x9e,0xaf};
    sm2_fn_from_bytes(a, a88);
    sm2_fn_from_bytes(b, b88);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c88, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a89[32] = {0xa2,0xf0,0x85,0xa9,0x79,0x98,0x0d,0x74,0x29,0xe5,0xc0,0xbc,0x23,0x26,0x67,0x37,0x1f,0xcc,0x7a,0xb5,0x9e,0x0d,0xca,0x31,0xde,0xf7,0x5b,0x97,0xd9,0x0f,0x8f,0xb9};
    static std::uint8_t b89[32] = {0x77,0xe8,0x8c,0xea,0xdc,0x9c,0xd9,0x6e,0x68,0x81,0x5f,0xff,0xb2,0x2d,0xc9,0x18,0xbb,0x9d,0xaf,0x7f,0x6b,0x9c,0x26,0xb9,0xcb,0xe6,0xc3,0x40,0x38,0xc9,0xf6,0xa6};
    static std::uint8_t c89[32] = {0x31,0xe0,0xc6,0x7d,0xd4,0x68,0xad,0x0d,0x28,0x2c,0x71,0x5a,0xdc,0xe6,0x3a,0xf2,0x8f,0x97,0x75,0x00,0x1a,0xe9,0xf6,0x9e,0xef,0xc0,0xe7,0x40,0x4f,0xa3,0x67,0x68};
    sm2_fn_from_bytes(a, a89);
    sm2_fn_from_bytes(b, b89);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c89, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a90[32] = {0x92,0xea,0x96,0xae,0x76,0x30,0xf7,0x41,0x92,0xaa,0xbd,0xac,0x30,0xf6,0xd1,0x60,0xb2,0x12,0x33,0x3a,0x21,0x91,0x56,0xd6,0x52,0xe4,0xa0,0xee,0x42,0x30,0x52,0xdd};
    static std::uint8_t b90[32] = {0xe6,0xed,0x32,0x3e,0xf2,0x85,0xfc,0xa9,0xa5,0x26,0x35,0xb0,0xe6,0x26,0xd4,0x7f,0xeb,0x4d,0xf0,0x83,0x2c,0x22,0xe4,0xe7,0x3c,0x3f,0x6a,0xdd,0xbc,0xcd,0xe4,0x55};
    static std::uint8_t c90[32] = {0xc5,0x47,0x5f,0x51,0xf5,0x40,0x73,0xb3,0xc0,0xd6,0x38,0x98,0xca,0xeb,0x9c,0xaa,0x8f,0xa4,0x2c,0xee,0x8c,0x28,0x1e,0x31,0x3b,0xb0,0x3b,0x58,0x1b,0x58,0x10,0x74};
    sm2_fn_from_bytes(a, a90);
    sm2_fn_from_bytes(b, b90);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c90, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a91[32] = {0xe0,0xcf,0xec,0xcf,0x42,0xf6,0x67,0x7c,0x88,0x7f,0x1f,0x37,0x17,0xa8,0xd3,0x18,0x95,0x9c,0x17,0x1a,0x01,0xbd,0xb9,0x5a,0x05,0x7e,0x57,0xd8,0x99,0x71,0x98,0x48};
    static std::uint8_t b91[32] = {0xf9,0x31,0xbe,0xe5,0x5a,0x07,0x24,0xa7,0x02,0x0b,0x2e,0x5d,0xed,0x31,0x2e,0x12,0x04,0x74,0x6a,0xc0,0xc9,0xd0,0x68,0x13,0x9f,0x97,0x13,0xa2,0xbe,0x30,0x5e,0xaf};
    static std::uint8_t c91[32] = {0x54,0x96,0x9b,0xae,0x9a,0x29,0x65,0x48,0xa0,0xa7,0x9a,0x12,0x34,0x25,0x0e,0xaf,0x52,0xcd,0xf0,0x38,0x53,0x0c,0xc2,0x8c,0xff,0xbc,0xea,0x34,0x22,0x09,0x20,0xa6};
    sm2_fn_from_bytes(a, a91);
    sm2_fn_from_bytes(b, b91);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c91, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a92[32] = {0xa3,0x7c,0xa1,0x77,0x8e,0x65,0x98,0x59,0x85,0xc6,0x14,0x2b,0x02,0xac,0x25,0xb6,0x31,0xf4,0xd0,0xda,0x97,0x18,0xd5,0xe6,0x19,0x19,0x90,0x14,0xec,0xc0,0xa8,0xa9};
    static std::uint8_t b92[32] = {0xc9,0xd0,0x1f,0xc3,0x2d,0xbe,0xf0,0x92,0xc7,0x04,0xf6,0x2d,0x2f,0xc8,0x28,0x69,0x90,0xb5,0x0e,0x83,0x2d,0x58,0xa9,0xd5,0xa3,0xe2,0x82,0x0f,0xb0,0x71,0x9e,0x7d};
    static std::uint8_t c92[32] = {0x22,0xd9,0xaf,0x10,0x9b,0x05,0x42,0x50,0xe0,0x3e,0xb8,0x14,0xc9,0xde,0x61,0x64,0x07,0x92,0xf2,0xff,0x7a,0x90,0x44,0x63,0x98,0xa6,0xdd,0x43,0xb4,0x8b,0xef,0xa5};
    sm2_fn_from_bytes(a, a92);
    sm2_fn_from_bytes(b, b92);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c92, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a93[32] = {0x3f,0x46,0xe3,0x55,0xb5,0x58,0xc2,0x71,0x0d,0x5c,0x85,0xe9,0xba,0x1a,0xe9,0xe2,0x45,0x2b,0xe1,0x3f,0x95,0xd2,0xe4,0xca,0x27,0x3b,0x12,0x93,0xb2,0x4f,0x31,0xc2};
    static std::uint8_t b93[32] = {0x12,0x30,0xc6,0x85,0x0f,0xd5,0x44,0x39,0x98,0x30,0x39,0x98,0xba,0x27,0xc7,0x64,0xc7,0x9f,0xe3,0x6f,0x4d,0x21,0x1f,0x69,0x4c,0xb2,0x5b,0xcd,0x68,0x2e,0x86,0x82};
    static std::uint8_t c93[32] = {0xaf,0x3a,0xc9,0x32,0x81,0xfa,0x5e,0xdc,0x40,0x69,0xa1,0xb4,0x64,0x07,0xf0,0xa4,0xc0,0x5f,0x6b,0x99,0x9e,0x00,0x05,0xc7,0x96,0x84,0xdc,0x2d,0x5d,0x27,0x16,0xe5};
    sm2_fn_from_bytes(a, a93);
    sm2_fn_from_bytes(b, b93);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c93, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a94[32] = {0x76,0x84,0xac,0x9e,0xbf,0xd3,0x3f,0x12,0x72,0xcf,0x9a,0x8f,0x1d,0xf8,0xb0,0x56,0xd3,0xae,0xaa,0xc3,0xc2,0xba,0xfa,0x1f,0xcf,0x9d,0xe2,0xc0,0x84,0xd1,0x53,0x6a};
    static std::uint8_t b94[32] = {0x7a,0x38,0xb5,0x88,0x6f,0x92,0x9a,0xf7,0xee,0x38,0xdc,0x0a,0x86,0x57,0x33,0x86,0x78,0xf3,0x58,0x1f,0x06,0x25,0x4e,0x7c,0xf2,0x1c,0xb8,0xc6,0x69,0xec,0x00,0x4d};
    static std::uint8_t c94[32] = {0xe2,0xde,0xc1,0xd3,0xe9,0xc5,0x19,0x14,0xab,0x1a,0x22,0x2a,0x5b,0x5a,0x60,0x7e,0x13,0x2d,0x5c,0x2a,0x98,0x89,0x55,0x6a,0x2a,0x31,0xcb,0xe5,0xbf,0x8f,0xfa,0xa2};
    sm2_fn_from_bytes(a, a94);
    sm2_fn_from_bytes(b, b94);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c94, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a95[32] = {0x8e,0xf4,0xd0,0x3b,0xd0,0x37,0xbc,0xcd,0x20,0x8e,0x88,0xf1,0x3a,0xca,0x92,0x86,0xf9,0xdf,0xfa,0xfe,0xff,0x70,0x4d,0x9d,0x7c,0xf6,0x2c,0x11,0x74,0xe7,0x84,0xf1};
    static std::uint8_t b95[32] = {0xea,0x04,0x4b,0xfd,0xba,0x8f,0xa2,0x3c,0x54,0x80,0xf8,0x97,0x73,0xdc,0x4d,0x22,0x10,0x2a,0xf7,0xce,0x86,0x1e,0x7b,0x84,0xb9,0x40,0xce,0xc0,0x1f,0xe9,0x55,0xce};
    static std::uint8_t c95[32] = {0xb5,0x59,0x85,0x84,0x51,0x6e,0x35,0xcc,0xe5,0x19,0xbb,0x21,0x52,0x63,0x90,0x20,0x96,0x7b,0xf1,0x4f,0x93,0xd0,0x11,0xb6,0xc1,0x12,0x70,0x42,0xa7,0x43,0x87,0x39};
    sm2_fn_from_bytes(a, a95);
    sm2_fn_from_bytes(b, b95);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c95, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a96[32] = {0xae,0xaa,0x50,0xa0,0x41,0x63,0xf8,0xf9,0xdd,0x8c,0x25,0xdd,0x14,0xb3,0xef,0x65,0x29,0xd7,0x17,0xc1,0x48,0xa5,0xe8,0xf8,0xec,0xfe,0xfb,0x97,0x84,0x47,0x73,0x18};
    static std::uint8_t b96[32] = {0x65,0xc8,0x0c,0x0f,0xf1,0xbf,0x6f,0xf0,0x52,0x23,0xbd,0x4d,0xaa,0x2a,0xb3,0xed,0x59,0x0c,0x1b,0x7d,0xc5,0xbb,0x25,0x05,0xbd,0xf1,0x9f,0x40,0xe4,0x4c,0xd9,0xad};
    static std::uint8_t c96[32] = {0xdf,0x20,0x36,0xfd,0x2d,0x39,0xdd,0x75,0x76,0x91,0x37,0x87,0x79,0xaa,0x8b,0x85,0x65,0x09,0x1b,0xc8,0x70,0xaf,0x87,0x4f,0x66,0xf4,0xf8,0x0b,0x4c,0x65,0x6e,0x7c};
    sm2_fn_from_bytes(a, a96);
    sm2_fn_from_bytes(b, b96);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c96, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a97[32] = {0xe0,0xca,0x12,0x34,0x5c,0xd9,0xf0,0x74,0x66,0xa5,0xcf,0x0e,0x51,0xe9,0x9e,0x65,0x53,0x04,0x04,0xea,0x88,0x10,0xcc,0x23,0xf4,0x8c,0xb3,0xd7,0xb1,0x18,0x43,0x52};
    static std::uint8_t b97[32] = {0x26,0xcc,0xd7,0xd6,0x3e,0xe4,0x29,0x3c,0xdb,0xfb,0xae,0x53,0x80,0xf9,0x31,0x8e,0x0b,0x15,0x1b,0x2e,0x0d,0x58,0x8c,0x11,0x8e,0x54,0x34,0x8b,0x21,0x56,0x66,0x1c};
    static std::uint8_t c97[32] = {0x4f,0xbe,0x69,0x13,0x47,0xd1,0xc0,0xe1,0xbd,0xf0,0xd6,0x10,0xad,0xa7,0x72,0xf7,0x8a,0xa5,0xd5,0x5f,0xea,0xb0,0xce,0x54,0x63,0x89,0x6c,0xf3,0xb7,0x58,0x42,0x87};
    sm2_fn_from_bytes(a, a97);
    sm2_fn_from_bytes(b, b97);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c97, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a98[32] = {0x1d,0xc4,0xa1,0x32,0x6e,0x0b,0x50,0x6f,0x8b,0xa5,0x88,0xf3,0xf0,0x7c,0x67,0xec,0x8e,0x78,0x81,0x14,0x18,0x0d,0x7f,0x5a,0xf5,0x47,0x27,0xe8,0xfc,0xe6,0xc3,0xb6};
    static std::uint8_t b98[32] = {0xc8,0x03,0x8b,0x91,0xff,0xac,0xcd,0x14,0x55,0x12,0xdc,0x42,0x64,0xba,0xb7,0x33,0x62,0xa0,0x48,0xcc,0xe1,0x27,0x5f,0x11,0x30,0x40,0x73,0x78,0xc5,0x51,0x11,0x59};
    static std::uint8_t c98[32] = {0xc8,0x27,0x5a,0x1f,0x1c,0xc2,0x81,0x7a,0x36,0x17,0x56,0x60,0x1c,0x75,0x11,0xc7,0xb3,0xe2,0xda,0xc0,0x50,0xa6,0x18,0x79,0x0c,0xe4,0x93,0x3b,0x97,0x7f,0x06,0xff};
    sm2_fn_from_bytes(a, a98);
    sm2_fn_from_bytes(b, b98);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c98, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }

    static std::uint8_t a99[32] = {0xbb,0x31,0xb4,0x33,0x3f,0xfa,0x1c,0xb6,0x59,0x74,0x11,0xfe,0x60,0xf4,0x5b,0x01,0xa7,0x30,0xc7,0x37,0x6d,0x9d,0x01,0x4e,0xc1,0xa0,0x07,0xf9,0x47,0x52,0x16,0x96};
    static std::uint8_t b99[32] = {0xd0,0x73,0xca,0x13,0x4a,0x5d,0xd8,0x9b,0x8c,0x6b,0xa2,0xe1,0x5a,0xc3,0xab,0x35,0xd2,0xb3,0x55,0x59,0x04,0x88,0xa3,0xe5,0xd3,0x29,0x6e,0x96,0xee,0xb4,0x20,0xc5};
    static std::uint8_t c99[32] = {0x29,0xf8,0xef,0x28,0x5b,0xa7,0xff,0xa2,0xe8,0xef,0x88,0xed,0xdc,0x1b,0x25,0x25,0xfc,0x32,0x27,0x31,0x7c,0xa7,0xc1,0x83,0x1e,0xe0,0xf3,0xd7,0x19,0x4e,0x0d,0x42};
    sm2_fn_from_bytes(a, a99);
    sm2_fn_from_bytes(b, b99);
    sm2_fn_mul(c, a, b);
    sm2_fn_to_bytes(c_data, c);
    if (std::memcmp(c99, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fn_mul");
    }
}